Skip to content

Commit f0faef0

Browse files
authored
Merge pull request microsoft#82097 from jplatte/patch-1
linux/bin/code.sh: use command -v instead of which
2 parents 23059a7 + c109bf7 commit f0faef0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

resources/linux/bin/code.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ if [ ! -L $0 ]; then
3030
# if path is not a symlink, find relatively
3131
VSCODE_PATH="$(dirname $0)/.."
3232
else
33-
if which readlink >/dev/null; then
33+
if command -v readlink >/dev/null; then
3434
# if readlink exists, follow the symlink and find relatively
3535
VSCODE_PATH="$(dirname $(readlink -f $0))/.."
3636
else

0 commit comments

Comments
 (0)