mirror of https://github.com/dirtbags/moth.git
don't bomb on no input
This commit is contained in:
parent
bacebf2206
commit
2b364c034b
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue