diff options
Diffstat (limited to 'usr/local/sbin/addaccess')
-rwxr-xr-x | usr/local/sbin/addaccess | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/usr/local/sbin/addaccess b/usr/local/sbin/addaccess deleted file mode 100755 index 8d0cef9..0000000 --- a/usr/local/sbin/addaccess +++ /dev/null @@ -1,19 +0,0 @@ -#!/usr/bin/perl - -use strict; -use warnings; - -use Piny; - -my $env = Piny::Environment->new( ); - -my ( $reponame, @users ) = @ARGV; - -my $repo = Piny::Repo->new( $reponame ); - -if ( $repo->owner->uid != $env->user->uid ) { - print "You are not the owner of that repo!\n"; - exit( 3 ); -}; - -$repo->add_access( map { Piny::User->new( $_ ) } @users ); |