Skip to content

Commit 69e491d

Browse files
committed
Add "" around $0 in Linux starting script
1 parent f25c779 commit 69e491d

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

resources/linux/bin/code.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,13 @@ if [ "$(id -u)" = "0" ]; then
2626
fi
2727
fi
2828

29-
if [ ! -L $0 ]; then
29+
if [ ! -L "$0" ]; then
3030
# if path is not a symlink, find relatively
31-
VSCODE_PATH="$(dirname $0)/.."
31+
VSCODE_PATH="$(dirname "$0")/.."
3232
else
3333
if command -v readlink >/dev/null; then
3434
# if readlink exists, follow the symlink and find relatively
35-
VSCODE_PATH="$(dirname $(readlink -f $0))/.."
35+
VSCODE_PATH="$(dirname $(readlink -f "$0"))/.."
3636
else
3737
# else use the standard install location
3838
VSCODE_PATH="/usr/share/@@NAME@@"

0 commit comments

Comments
 (0)