mirror of
https://github.com/Microsoft/vscode
synced 2024-09-13 21:55:38 +00:00
Merge pull request #82097 from jplatte/patch-1
linux/bin/code.sh: use command -v instead of which
This commit is contained in:
commit
f0faef0dd7
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue