From 46e31371500c3184dfcf26da8fa47c7f389d0dff Mon Sep 17 00:00:00 2001 From: Artem Sapegin Date: Tue, 2 Apr 2013 13:28:15 +0400 Subject: [PATCH] npm-update: jq check. --- bin/npm-update | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bin/npm-update b/bin/npm-update index 5abfd82..9b3b872 100755 --- a/bin/npm-update +++ b/bin/npm-update @@ -5,6 +5,8 @@ # Require: # - jq - brew install jq +command -v jq >/dev/null 2>&1 || { echo >&2 "jq not installed: see comments for instructions."; exit 1; } + # Common stuff RED="$(tput setaf 1)" CYAN="$(tput setaf 6)"