From 688cc1a5fb9a9693cff9e2c5df6b233f7b919718 Mon Sep 17 00:00:00 2001 From: Thomas Forgione Date: Thu, 21 Mar 2019 17:56:49 +0100 Subject: [PATCH] Don't npm update if no ~/.npmbin --- zsh/bin/update | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/zsh/bin/update b/zsh/bin/update index b0c3cf9..38113a7 100755 --- a/zsh/bin/update +++ b/zsh/bin/update @@ -196,6 +196,10 @@ update-npm() { return fi + if [ ! -d ~/.npmbin ]; then + return + fi + start_npm_update=`date +%s` echo "\033[32;1m=== Updating node packages ===\033[0m"