Skip to content

Commit

Permalink
Import PR#309 from com.visualstudio.code
Browse files Browse the repository at this point in the history
Create `/etc/shells` if it is missing
  • Loading branch information
GiovanniGrieco authored and fooishbar committed May 17, 2022
1 parent af86b12 commit a7211ba
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions code-insiders.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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-insiders/code-insiders /app/extra/vscode-insiders/resources/app/out/cli.js \
--ms-enable-electron-run-as-node --extensions-dir=${XDG_DATA_HOME}/vscode-insiders/extensions \
Expand Down

0 comments on commit a7211ba

Please sign in to comment.