Skip to content

Commit

Permalink
Merge pull request #82097 from jplatte/patch-1
Browse files Browse the repository at this point in the history
linux/bin/code.sh: use command -v instead of which
  • Loading branch information
Tyriar authored Oct 8, 2019
2 parents 23059a7 + c109bf7 commit f0faef0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion resources/linux/bin/code.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ if [ ! -L $0 ]; then
# if path is not a symlink, find relatively
VSCODE_PATH="$(dirname $0)/.."
else
if which readlink >/dev/null; then
if command -v readlink >/dev/null; then
# if readlink exists, follow the symlink and find relatively
VSCODE_PATH="$(dirname $(readlink -f $0))/.."
else
Expand Down

0 comments on commit f0faef0

Please sign in to comment.