aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-07-26 15:32:38 +0200
committerJozanLeClerc <bousset.rudy@gmail.com>2020-07-26 15:32:38 +0200
commit00d85855b657ecb3ff0da2c1601d9f59a19ddb22 (patch)
treefbed48feb16a81854db9fb4d1275ee1d7a1c34f4
parentTrying to remove bloat (diff)
downloadjoe-scripts-00d85855b657ecb3ff0da2c1601d9f59a19ddb22.tar.gz
joe-scripts-00d85855b657ecb3ff0da2c1601d9f59a19ddb22.tar.bz2
joe-scripts-00d85855b657ecb3ff0da2c1601d9f59a19ddb22.tar.xz
joe-scripts-00d85855b657ecb3ff0da2c1601d9f59a19ddb22.tar.zst
joe-scripts-00d85855b657ecb3ff0da2c1601d9f59a19ddb22.zip
Cool
-rwxr-xr-xsrc/gitjoe/chdesc.pl8
-rwxr-xr-xsrc/gitjoe/chowner.pl5
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";