This commit is contained in:
Even Bell 2025-06-27 08:21:54 +08:00
parent 0e6567d8d0
commit be1ca3db02
2 changed files with 6 additions and 3 deletions

View File

@ -8,7 +8,6 @@
git clone --depth 1 https://git.unvec.site/stevenhobs/vscode-patch ~/.vscode-patch
```
2. 添加执行权限 `chmod +x -r ~/.vscode-patch`
2. 添加执行权限 `chmod -R +751 ~/.vscode-patch`
3. 补丁VSCode `~/.vscode-patch/patch-code.sh [VSCode App安装路径]`

View File

@ -6,7 +6,11 @@ if [ ! -d "$VSCODE_PATCH_DIR/lib" ]; then
fi
VSCODE_APP_PATH=""
if [ -n "$1" ]; then
if [[ "$1" != /* ]]; then
VSCODE_APP_PATH="$(realpath "$1")"
else
VSCODE_APP_PATH="$1"
fi
else
read -p "指定VSCode App路径: " VSCODE_APP_PATH
fi