Permalink
Browse files

(minor) perms would not print the correct message sometimes...

i.e., if getperms had an error.  (The same error for setperms would
print the correct message)
  • Loading branch information...
sitaramc committed Jan 24, 2013
1 parent 923cf46 commit 3e87a082c1411fa763fe5f61289f1b46772595b2
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/commands/perms
View
@@ -36,15 +36,15 @@ usage() if not @ARGV or $ARGV[0] eq '-h';
$ENV{GL_USER} or _die "GL_USER not set";
+my $generic_error = "repo does not exist, or you are not authorised";
+
my $list = 0;
if ( $ARGV[0] eq '-l' ) {
$list++;
shift;
getperms(@ARGV); # doesn't return
}
-my $generic_error = "repo does not exist, or you are not authorised";
-
# auto-create the repo if -c passed and repo doesn't exist
if ( $ARGV[0] eq '-c' ) {
shift;

0 comments on commit 3e87a08

Please sign in to comment.