From be4a5fc6986b1141af30f1a3dd91e7dfbbc42e9e Mon Sep 17 00:00:00 2001 From: Thomas Levine Date: Wed, 10 Oct 2012 15:51:06 -0400 Subject: [PATCH] take an argument --- readme.md | 2 +- urchin | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/readme.md b/readme.md index f042fb3..2282f78 100644 --- a/readme.md +++ b/readme.md @@ -13,7 +13,7 @@ Download Urchin like so (as root) Now you can run it. - urchin + urchin ## Writing tests Make a root directory for your tests. Inside it, put executable files that diff --git a/urchin b/urchin index 4448923..4cb13aa 100755 --- a/urchin +++ b/urchin @@ -46,13 +46,13 @@ recurse() { fi } -if [ "$#" = '0' ] +if [ "$#" = '1' ] && [ -d "$1" ] then echo Running tests - recurse . + recurse "$1" echo echo Done else - echo 'Run `urchin` without arguments from a directory containing urchin tests.' + echo "usage: $0 " echo 'Go to http://www.urchin.sh for documentation on writing tests.' fi