We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f25c779 commit 69e491dCopy full SHA for 69e491d
1 file changed
resources/linux/bin/code.sh
@@ -26,13 +26,13 @@ if [ "$(id -u)" = "0" ]; then
26
fi
27
28
29
-if [ ! -L $0 ]; then
+if [ ! -L "$0" ]; then
30
# if path is not a symlink, find relatively
31
- VSCODE_PATH="$(dirname $0)/.."
+ VSCODE_PATH="$(dirname "$0")/.."
32
else
33
if command -v readlink >/dev/null; then
34
# if readlink exists, follow the symlink and find relatively
35
- VSCODE_PATH="$(dirname $(readlink -f $0))/.."
+ VSCODE_PATH="$(dirname $(readlink -f "$0"))/.."
36
37
# else use the standard install location
38
VSCODE_PATH="/usr/share/@@NAME@@"
0 commit comments