Use a command instead of type for npm check

This commit is contained in:
ViViDboarder 2021-07-25 18:38:57 -07:00
parent 2fb5734718
commit 166cb1db02
1 changed files with 1 additions and 1 deletions

View File

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