linux/bin/code.sh: use command -v instead of which

This commit is contained in:
Jonas Platte
2019-10-08 14:02:44 +02:00
committed by GitHub
parent b24844ce9d
commit c109bf77ac

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