install.sh: Rename SSH_FLAGS to RSH_FLAGS
This commit is contained in:
parent
7093f99a78
commit
759a78d9d8
12
install.sh
12
install.sh
@ -109,7 +109,7 @@ main() {
|
|||||||
VERSION \
|
VERSION \
|
||||||
OPTIONAL \
|
OPTIONAL \
|
||||||
ALL_FLAGS \
|
ALL_FLAGS \
|
||||||
SSH_ARGS
|
RSH_ARGS
|
||||||
|
|
||||||
ALL_FLAGS=""
|
ALL_FLAGS=""
|
||||||
while [ "$#" -gt 0 ]; do
|
while [ "$#" -gt 0 ]; do
|
||||||
@ -152,7 +152,7 @@ main() {
|
|||||||
shift
|
shift
|
||||||
# We remove the -- added above.
|
# We remove the -- added above.
|
||||||
ALL_FLAGS="${ALL_FLAGS% --}"
|
ALL_FLAGS="${ALL_FLAGS% --}"
|
||||||
SSH_ARGS="$*"
|
RSH_ARGS="$*"
|
||||||
break
|
break
|
||||||
;;
|
;;
|
||||||
-*)
|
-*)
|
||||||
@ -161,7 +161,7 @@ main() {
|
|||||||
exit 1
|
exit 1
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
SSH_ARGS="$*"
|
RSH_ARGS="$*"
|
||||||
break
|
break
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
@ -169,9 +169,9 @@ main() {
|
|||||||
shift
|
shift
|
||||||
done
|
done
|
||||||
|
|
||||||
if [ "${SSH_ARGS-}" ]; then
|
if [ "${RSH_ARGS-}" ]; then
|
||||||
echoh "Installing remotely with ssh $SSH_ARGS"
|
echoh "Installing remotely with ssh $RSH_ARGS"
|
||||||
curl -fsSL https://code-server.dev/install.sh | prefix "$SSH_ARGS" ssh "$SSH_ARGS" sh -s -- "$ALL_FLAGS"
|
curl -fsSL https://code-server.dev/install.sh | prefix "$RSH_ARGS" ssh "$RSH_ARGS" sh -s -- "$ALL_FLAGS"
|
||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user