You've already forked dev.commandline.waveterm
mirror of
https://github.com/wavetermdev/dev.commandline.waveterm.git
synced 2026-04-22 15:27:29 -07:00
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:
committed by
Bartłomiej Piotrowski
parent
7c97ff0dc0
commit
cbff22c471
@@ -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 \
|
||||
|
||||
Reference in New Issue
Block a user