diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-07-26 15:29:44 +0200 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-07-26 15:29:44 +0200 |
commit | 841d3039de511b88061e59f387ec751679dfb9d9 (patch) | |
tree | a96b21c42a5bfa0c58ee2f0ec89b16b52ed81299 | |
parent | Cleaner (diff) | |
download | joe-scripts-841d3039de511b88061e59f387ec751679dfb9d9.tar.gz joe-scripts-841d3039de511b88061e59f387ec751679dfb9d9.tar.bz2 joe-scripts-841d3039de511b88061e59f387ec751679dfb9d9.tar.xz joe-scripts-841d3039de511b88061e59f387ec751679dfb9d9.tar.zst joe-scripts-841d3039de511b88061e59f387ec751679dfb9d9.zip |
Trying to remove bloat
-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; |