mirror of
https://github.com/ViViDboarder/shoestrap.git
synced 2024-12-22 18:57:40 +00:00
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
Block a user