From f2dec2d06f6015b19d06fd7c57faaa7310c2d568 Mon Sep 17 00:00:00 2001 From: Mark Bennett Date: Mon, 8 Apr 2013 16:01:39 -0600 Subject: [PATCH] Check to see if wget is installed. --- bin/plow | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/bin/plow b/bin/plow index ebd780d..6c65e3c 100755 --- a/bin/plow +++ b/bin/plow @@ -53,7 +53,11 @@ while test $# != 0; do done recipe() { - wget -nc -qP .plow $1 + if command -v wget > /dev/null; then + wget -nc -q -P .plow $1 + else + bail "wget not installed: brew install wget" + fi } bail() {