os/arch/bin/rsl: fix url + open url if interactive
This commit is contained in:
parent
9de616108f
commit
30f8029c23
|
@ -5,10 +5,11 @@
|
||||||
|
|
||||||
open="open"
|
open="open"
|
||||||
[[ $OSTYPE == linux* ]] && open="xdg-open"
|
[[ $OSTYPE == linux* ]] && open="xdg-open"
|
||||||
if pgrep rslsync >/dev/null; then
|
|
||||||
$open http://locahost:8888
|
if ! pgrep rslsync >/dev/null; then
|
||||||
else
|
|
||||||
pushd $HOME >/dev/null
|
pushd $HOME >/dev/null
|
||||||
rslsync &
|
rslsync &
|
||||||
popd >/dev/null
|
popd >/dev/null
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
[[ -t 0 ]] && $open http://localhost:8888/gui/
|
||||||
|
|
Loading…
Reference in a new issue