From: Michal Sojka Date: Tue, 20 Sep 2011 21:48:23 +0000 (+0200) Subject: Complain if misused X-Git-Url: http://rtime.felk.cvut.cz/gitweb/sojka/gl-perm.git/commitdiff_plain/d69df5b260e9a4243b729c0e80d67ae8fef4107d Complain if misused --- diff --git a/gl-perm b/gl-perm index 4c90add..a9c522c 100755 --- a/gl-perm +++ b/gl-perm @@ -28,8 +28,10 @@ fi case $cmd in gl-getperms|get) + if test $# -gt 0; then echo >&2 "Command $cmd does not accept any arguments"; exit 1; fi ssh $userhost getperms $repo;; gl-setperms|set) + if test $# -gt 0; then echo >&2 "Command $cmd does not accept any arguments - it reads from stdin"; exit 1; fi ssh $userhost setperms $repo;; gl-addperm|add) perms=$(ssh $userhost getperms $repo)