Use a command instead of type for npm check
This commit is contained in:
parent
2fb5734718
commit
166cb1db02
|
@ -41,7 +41,7 @@ if [ $det_os = "mac" ]
|
|||
end
|
||||
|
||||
# NPM paths
|
||||
if type -q npm
|
||||
if command -q npm
|
||||
set npm_path "$HOME/.npm/bin"
|
||||
if [ ! -d "$npm_path" ]
|
||||
# It's more robust to use the subshell, but far slower
|
||||
|
|
Loading…
Reference in New Issue