Skip to content

Commit d4108d1

Browse files
authored
Handle spaces in VSCODE_EXTENSION_ID
This a convenience to allows for spaces. Ex: `vscode-icons-team.vscode-icons | ms-azuretools.vscode-docker`. Signed-off-by: Rick Venutolo <[email protected]>
1 parent 60d766c commit d4108d1

File tree

1 file changed

+1
-0
lines changed
  • root/etc/s6-overlay/s6-rc.d/init-mod-code-server-extension-arguments

1 file changed

+1
-0
lines changed

root/etc/s6-overlay/s6-rc.d/init-mod-code-server-extension-arguments/run

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ if [ -z ${VSCODE_EXTENSION_IDS+x} ]; then
77
fi
88

99
IFS='|'
10+
VSCODE_EXTENSION_IDS=$(tr -d "[:space:]" <<< ${VSCODE_EXTENSION_IDS})
1011
VSCODE_EXTENSION_IDS=(${VSCODE_EXTENSION_IDS})
1112
for ID in "${VSCODE_EXTENSION_IDS[@]}"; do
1213
install-extension ${ID}

0 commit comments

Comments
 (0)