Skip to content

Commit 403e620

Browse files
authored
ignore empty IDs
Signed-off-by: Rick Venutolo <[email protected]>
1 parent d4108d1 commit 403e620

File tree

1 file changed

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

1 file changed

+3
-1
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,7 @@ IFS='|'
1010
VSCODE_EXTENSION_IDS=$(tr -d "[:space:]" <<< ${VSCODE_EXTENSION_IDS})
1111
VSCODE_EXTENSION_IDS=(${VSCODE_EXTENSION_IDS})
1212
for ID in "${VSCODE_EXTENSION_IDS[@]}"; do
13-
install-extension ${ID}
13+
if [ -n ${ID} ]; then
14+
install-extension ${ID}
15+
fi
1416
done

0 commit comments

Comments
 (0)