aboutsummaryrefslogtreecommitdiff
path: root/lock
diff options
context:
space:
mode:
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
+