add scripts for vscode server

This commit is contained in:
mjallen18
2024-02-23 17:13:33 -06:00
parent 93fa165ba9
commit dc6ebf3cbb
3 changed files with 71 additions and 15 deletions

12
scripts/fix-vscode-node Executable file
View File

@@ -0,0 +1,12 @@
#! /bin/sh
# fix-vscode-server-node.sh
# https://github.com/microsoft/vscode-remote-release/issues/648#issuecomment-503148523
cd ~/.vscode-server/bin/*
if ! ./node -e "require('process').exit(0)"
then
echo patching node binary $(readlink -f node)
rm node
ln -s $(which node)
else
echo node is working $(readlink -f node)
fi