diff options
author | Calvin Morrison <mutantturkey@gmail.com> | 2014-04-07 17:51:44 -0400 |
---|---|---|
committer | Calvin Morrison <mutantturkey@gmail.com> | 2014-04-07 17:51:44 -0400 |
commit | 82864dce3b608537fe87ad518800699661b58985 (patch) | |
tree | 0462bc9ad92066ce07c71c3134aeaf4b62c01dc0 /lock | |
parent | 6387e442e8c1c9d06c80363ac172b1daf0afb430 (diff) |
argv check
Diffstat (limited to 'lock')
-rwxr-xr-x | lock | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -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 + |