aboutsummaryrefslogtreecommitdiff
path: root/lock
diff options
context:
space:
mode:
authorCalvin Morrison <mutantturkey@gmail.com>2014-04-07 17:51:44 -0400
committerCalvin Morrison <mutantturkey@gmail.com>2014-04-07 17:51:44 -0400
commit82864dce3b608537fe87ad518800699661b58985 (patch)
tree0462bc9ad92066ce07c71c3134aeaf4b62c01dc0 /lock
parent6387e442e8c1c9d06c80363ac172b1daf0afb430 (diff)
argv check
Diffstat (limited to 'lock')
-rwxr-xr-xlock8
1 files changed, 7 insertions, 1 deletions
diff --git a/lock b/lock
index b4b285d..b0ba75f 100755
--- a/lock
+++ b/lock
@@ -11,4 +11,10 @@ lock() {
}
-lock $1
+if [[ "$#" -eq "1" ]]; then
+ lock $1
+else
+ echo "please supply one argument: the lock folder"
+ exit 1
+fi
+