Skip to content

Commit 62203cc

Browse files
authored
no --version when latest
1 parent bcb7606 commit 62203cc

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

main.sh

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,11 @@ if [[ $RUNNER_OS == Windows ]]; then
1414
npm config set script-shell "$old_script_shell"
1515
nvm use "$old_node_version"
1616
else
17-
curl -fsSL https://code-server.dev/install.sh | sh -s -- \
18-
--prefix=/usr/local --version "$INPUT_CODE_SERVER_VERSION"
17+
if [[ $INPUT_CODE_SERVER_VERSION == latest]]; then
18+
curl -fsSL https://code-server.dev/install.sh | sh -s -- \
19+
--prefix=/usr/local
20+
else
21+
curl -fsSL https://code-server.dev/install.sh | sh -s -- \
22+
--prefix=/usr/local --version "$INPUT_CODE_SERVER_VERSION"
23+
fi
1924
fi

0 commit comments

Comments
 (0)