From 82864dce3b608537fe87ad518800699661b58985 Mon Sep 17 00:00:00 2001 From: Calvin Morrison Date: Mon, 7 Apr 2014 17:51:44 -0400 Subject: argv check --- lock | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'lock') 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 + -- cgit v1.2.3