Archived
1
0

install.sh: Rename SSH_FLAGS to RSH_FLAGS

This commit is contained in:
Anmol Sethi 2020-10-21 17:00:20 -04:00
parent 7093f99a78
commit 759a78d9d8
No known key found for this signature in database
GPG Key ID: 8CEF1878FF10ADEB

View File

@ -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