Better arg checking for runchecks
authorChip Black <bytex64@bytex64.net>
Mon, 18 Aug 2008 07:12:39 +0000 (02:12 -0500)
committerChip Black <bytex64@bytex64.net>
Mon, 18 Aug 2008 07:12:39 +0000 (02:12 -0500)
runchecks

index 3467c28..535fa68 100755 (executable)
--- a/runchecks
+++ b/runchecks
@@ -2,6 +2,10 @@
 use strict;
 
 my $dir = shift;
+unless ($dir) {
+       print "No directory specified\n";
+       exit 1;
+}
 unless (-d $dir) {
        print "$dir is not a directory\n";
        exit 1;