File tree 1 file changed +4
-7
lines changed
1 file changed +4
-7
lines changed Original file line number Diff line number Diff line change 32
32
--version X.X.X
33
33
Install a specific version instead of the latest.
34
34
35
- --edge [true | false (default) ]
35
+ --edge
36
36
Install the latest edge version instead of the latest stable version.
37
37
38
38
--method [detect | standalone]
74
74
}
75
75
76
76
echo_latest_version () {
77
- if [ " ${EDGE:- false} " = " true " ]; then
77
+ if [ " ${EDGE-} " ]; then
78
78
version=" $( curl -fsSL https://api.github.com/repos/cdr/code-server/releases | awk ' match($0,/.*"html_url": "(.*\/releases\/tag\/.*)".*/)' | head -n 1 | awk -F ' "' ' {print $4}' ) "
79
79
else
80
80
# https://gist.github.com/lukechilds/a83e1d7127b78fef38c2914c4ececc3c#gistcomment-2758860
@@ -142,6 +142,7 @@ main() {
142
142
OPTIONAL \
143
143
ALL_FLAGS \
144
144
RSH_ARGS \
145
+ EDGE \
145
146
RSH
146
147
147
148
ALL_FLAGS=" "
@@ -178,11 +179,7 @@ main() {
178
179
VERSION=" $( parse_arg " $@ " ) "
179
180
;;
180
181
--edge)
181
- EDGE=" $( parse_arg " $@ " ) "
182
- shift
183
- ;;
184
- --edge=* )
185
- EDGE=" $( parse_arg " $@ " ) "
182
+ EDGE=1
186
183
;;
187
184
--rsh)
188
185
RSH=" $( parse_arg " $@ " ) "
You can’t perform that action at this time.
0 commit comments