aboutsummaryrefslogtreecommitdiff
path: root/bash/npm.sh
diff options
context:
space:
mode:
Diffstat (limited to 'bash/npm.sh')
-rw-r--r--bash/npm.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/bash/npm.sh b/bash/npm.sh
index c23c074..7fbe4f7 100644
--- a/bash/npm.sh
+++ b/bash/npm.sh
@@ -2,9 +2,9 @@
# FIXME: port to NixOS
npm_i() {
- (which $1 &> /dev/null) || {
+ (command -v "$1" &> /dev/null) || {
yellow "Installing $2"
- npm i -g $2
+ npm i -g "$2"
}
}