From d640be7cb5d584251319a7b864bc59f26c265aa5 Mon Sep 17 00:00:00 2001 From: "J. Patrick Avery, Jr" Date: Wed, 3 Jun 2015 19:59:58 -0400 Subject: [PATCH] don't bomb on no input --- bin/install-category | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bin/install-category b/bin/install-category index 530c7d1..6771d7c 100755 --- a/bin/install-category +++ b/bin/install-category @@ -1,11 +1,11 @@ #! /bin/sh -e -indir=$1; shift - -if ! [ -d $indir ]; then +indir=$1 +if ! [ -n "$indir" -a -d $indir ]; then echo "Usage: $0 PUZZLEDIR" exit 1 fi +shift die () { echo "$@" 1>&2