commit:320fab753945ca5e407cf91161ac222f3b15ffcc
author:Chip Black
committer:Chip Black
date:Mon Aug 18 02:12:39 2008 -0500
parents:04dd40d98617a67de54f661482f2955acc4a1d52
Better arg checking for runchecks
diff --git a/runchecks b/runchecks
line changes: +4/-0
index 3467c28..535fa68
--- 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;