mirror of
https://github.com/ViViDboarder/shoestrap.git
synced 2024-11-22 12:26:29 +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
|
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
|
||||||
|
Loading…
Reference in New Issue
Block a user