This commit is contained in:
Thomas Levine 2012-10-11 15:47:08 -04:00
parent b0a0821124
commit 0c6837cfbd
7 changed files with 15 additions and 11 deletions

7
urchin
View File

@ -132,8 +132,11 @@ stdout_file=/tmp/urchin_stdout
$HELP && urchin_help
# Verify argument for main stuff
[ "$#" = '1' ] && [ -d "$1" ] ||
( echo "$USAGE" && exit 1 )
if [ "$#" != '1' ] && [ ! -d "$1" ]
then
echo "$USAGE"
exit 1
fi
# Run or present the Molly guard.
if echo "$(basename "$(fullpath "$1")")" | grep test || $FORCE