Merge pull request #82097 from jplatte/patch-1

linux/bin/code.sh: use command -v instead of which
This commit is contained in:
Daniel Imms 2019-10-08 06:32:43 -07:00 committed by GitHub
commit f0faef0dd7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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