diff options
-rwxr-xr-x | src/gitjoe/chdesc.pl | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/gitjoe/chdesc.pl b/src/gitjoe/chdesc.pl index 86ca637..59a5025 100755 --- a/src/gitjoe/chdesc.pl +++ b/src/gitjoe/chdesc.pl @@ -24,11 +24,13 @@ sub main { open(my $desc_fh, '>:encoding(UTF-8)', $home_dir . $repo . 'description'); print $desc_fh $desc; close($desc_fh); - system( - '/usr/local/bin/dash', - '-c', - '/usr/sbin/chown -v ' . $usr . ':' . $usr . ' ' . $home_dir . $repo . 'description' - ); + # 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' + # ); print "Changed git repository " . colored($repo, 'bold green') . " description for user " . colored($usr, 'bold') . ".\n" . "New description: ". colored($desc, 'bold green') . ".\n"; exit; |