don't bomb on no input

This commit is contained in:
J. Patrick Avery, Jr 2015-06-03 19:59:58 -04:00
parent 3ff89e9af2
commit 7a4d2ba132
1 changed files with 3 additions and 3 deletions

View File

@ -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