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

View File

@ -41,7 +41,7 @@ if [ $det_os = "mac" ]
end end
# NPM paths # NPM paths
if type -q npm if command -q npm
set npm_path "$HOME/.npm/bin" set npm_path "$HOME/.npm/bin"
if [ ! -d "$npm_path" ] if [ ! -d "$npm_path" ]
# It's more robust to use the subshell, but far slower # It's more robust to use the subshell, but far slower