Skip to content

Commit 759a78d

Browse files
committed
install.sh: Rename SSH_FLAGS to RSH_FLAGS
1 parent 7093f99 commit 759a78d

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

install.sh

+6-6
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ main() {
109109
VERSION \
110110
OPTIONAL \
111111
ALL_FLAGS \
112-
SSH_ARGS
112+
RSH_ARGS
113113

114114
ALL_FLAGS=""
115115
while [ "$#" -gt 0 ]; do
@@ -152,7 +152,7 @@ main() {
152152
shift
153153
# We remove the -- added above.
154154
ALL_FLAGS="${ALL_FLAGS% --}"
155-
SSH_ARGS="$*"
155+
RSH_ARGS="$*"
156156
break
157157
;;
158158
-*)
@@ -161,17 +161,17 @@ main() {
161161
exit 1
162162
;;
163163
*)
164-
SSH_ARGS="$*"
164+
RSH_ARGS="$*"
165165
break
166166
;;
167167
esac
168168

169169
shift
170170
done
171171

172-
if [ "${SSH_ARGS-}" ]; then
173-
echoh "Installing remotely with ssh $SSH_ARGS"
174-
curl -fsSL https://code-server.dev/install.sh | prefix "$SSH_ARGS" ssh "$SSH_ARGS" sh -s -- "$ALL_FLAGS"
172+
if [ "${RSH_ARGS-}" ]; then
173+
echoh "Installing remotely with ssh $RSH_ARGS"
174+
curl -fsSL https://code-server.dev/install.sh | prefix "$RSH_ARGS" ssh "$RSH_ARGS" sh -s -- "$ALL_FLAGS"
175175
return
176176
fi
177177

0 commit comments

Comments
 (0)