Create /etc/shells if it is missing

Resolves: #288

The shell discovery process in vscode crashes if `/etc/shells` does not exist, resulting in no shells being available (including any custom profiles). This will link `/var/run/host/etc/shells` to `/etc/shells` if the latter is missing.
This commit is contained in:
Jonathan Dickinson
2022-05-02 16:43:34 -04:00
committed by Bartłomiej Piotrowski
parent 7c97ff0dc0
commit cbff22c471
+4
View File
@@ -60,6 +60,10 @@ for i in "${SDK[@]}"; do
fi
done
if [ ! -e /etc/shells ] && [ -e /var/run/host/etc/shells ]; then
ln -s /var/run/host/etc/shells /etc/shells
fi
exec env ELECTRON_RUN_AS_NODE=1 PATH="${PATH}:${XDG_DATA_HOME}/node_modules/bin" \
/app/bin/zypak-wrapper.sh /app/extra/vscode/code /app/extra/vscode/resources/app/out/cli.js \
--ms-enable-electron-run-as-node --extensions-dir=${XDG_DATA_HOME}/vscode/extensions \