mirror of https://github.com/dirtbags/moth.git
don't bomb on no input
This commit is contained in:
parent
3ff89e9af2
commit
7a4d2ba132
|
@ -1,11 +1,11 @@
|
||||||
#! /bin/sh -e
|
#! /bin/sh -e
|
||||||
|
|
||||||
indir=$1; shift
|
indir=$1
|
||||||
|
if ! [ -n "$indir" -a -d $indir ]; then
|
||||||
if ! [ -d $indir ]; then
|
|
||||||
echo "Usage: $0 PUZZLEDIR"
|
echo "Usage: $0 PUZZLEDIR"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
shift
|
||||||
|
|
||||||
die () {
|
die () {
|
||||||
echo "$@" 1>&2
|
echo "$@" 1>&2
|
||||||
|
|
Loading…
Reference in New Issue