mirror of
https://github.com/microsoft/vscode.git
synced 2025-12-25 04:36:23 +00:00
linux/bin/code.sh: use command -v instead of which
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user