diff options
-rwxr-xr-x | src/gitjoe/chdesc.pl | 8 | ||||
-rwxr-xr-x | src/gitjoe/chowner.pl | 5 |
2 files changed, 1 insertions, 12 deletions
diff --git a/src/gitjoe/chdesc.pl b/src/gitjoe/chdesc.pl index 59a5025..4cae086 100755 --- a/src/gitjoe/chdesc.pl +++ b/src/gitjoe/chdesc.pl @@ -24,13 +24,7 @@ sub main { open(my $desc_fh, '>:encoding(UTF-8)', $home_dir . $repo . 'description'); print $desc_fh $desc; close($desc_fh); - # my (undef, undef, $uid, $gid) = getpwnam($usr); - # chown $uid, $gid, $home_dir . '.ssh/'; - # system( - # '/usr/local/bin/dash', - # '-c', - # '/usr/sbin/chown -v ' . $usr . ':' . $usr . ' ' . $home_dir . $repo . 'description' - # ); + substr($repo, -1) = ""; print "Changed git repository " . colored($repo, 'bold green') . " description for user " . colored($usr, 'bold') . ".\n" . "New description: ". colored($desc, 'bold green') . ".\n"; exit; diff --git a/src/gitjoe/chowner.pl b/src/gitjoe/chowner.pl index bd59aac..4e60118 100755 --- a/src/gitjoe/chowner.pl +++ b/src/gitjoe/chowner.pl @@ -24,11 +24,6 @@ sub main { open(my $owner_fh, '>:encoding(utf-8)', $home_dir . $repo . 'owner'); print $owner_fh $owner; close($owner_fh); - system( - '/usr/local/bin/dash', - '-c', - '/usr/sbin/chown -v ' . $usr . ':' . $usr . ' ' . $home_dir . $repo . 'owner' - ); substr($repo, -1) = ""; print "Changed git repository " . colored($repo, 'bold green') . " owner for user " . colored($usr, 'bold') . ".\n" "New owner: ". colored($owner, 'bold green') . ".\n"; |