aboutsummaryrefslogtreecommitdiffstats
path: root/src/gitjoe
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-07-09 17:34:01 +0200
committerJozanLeClerc <bousset.rudy@gmail.com>2020-07-09 17:34:01 +0200
commit1cf4611946b418b49a071b78d7f5da3649483a8d (patch)
treecb7d86b9342e1574c8a8bf4cbb81d028ad13fc30 /src/gitjoe
parentLimited commits to 20 (diff)
downloadjoe-scripts-1cf4611946b418b49a071b78d7f5da3649483a8d.tar.gz
joe-scripts-1cf4611946b418b49a071b78d7f5da3649483a8d.tar.bz2
joe-scripts-1cf4611946b418b49a071b78d7f5da3649483a8d.tar.xz
joe-scripts-1cf4611946b418b49a071b78d7f5da3649483a8d.tar.zst
joe-scripts-1cf4611946b418b49a071b78d7f5da3649483a8d.zip
Added fine end script messages
Diffstat (limited to '')
-rwxr-xr-xsrc/gitjoe/newrepo.pl4
-rwxr-xr-xsrc/gitjoe/rmrepo.pl1
-rwxr-xr-xsrc/gitjoe/rmuser.pl1
3 files changed, 6 insertions, 0 deletions
diff --git a/src/gitjoe/newrepo.pl b/src/gitjoe/newrepo.pl
index 951b1b5..d0e6bff 100755
--- a/src/gitjoe/newrepo.pl
+++ b/src/gitjoe/newrepo.pl
@@ -87,6 +87,10 @@ sub main {
'/usr/sbin/chown -v ' . $usr . ':' . $usr . ' ' . $home_dir . $repo . 'description'
);
}
+ substr($repo, -1) = "";
+ print "Created git repository " . colored($repo, 'bold green') . " . for user " . colored($usr, 'bold') . ".\n";
+ print "Remote url: " . colored($usr . '@jozanleclerc.xyz:' . $repo, 'bold green') . "\n"
+ . "Public clone url: " . colored('git://jozanleclerc.xyz/' . $usr . '/' . $repo, 'bold green') . "\n";
exit;
}
diff --git a/src/gitjoe/rmrepo.pl b/src/gitjoe/rmrepo.pl
index 30ce4d2..632c6f7 100755
--- a/src/gitjoe/rmrepo.pl
+++ b/src/gitjoe/rmrepo.pl
@@ -25,6 +25,7 @@ sub main {
'-c',
'/bin/rm -rfv ' . $home_dir . $repo
);
+ print "Deleted git repository " . colored($repo, 'bold yellow') . " for user " . colored($usr, 'bold') . ".\n";
exit;
}
diff --git a/src/gitjoe/rmuser.pl b/src/gitjoe/rmuser.pl
index 944745f..d9b056d 100755
--- a/src/gitjoe/rmuser.pl
+++ b/src/gitjoe/rmuser.pl
@@ -23,6 +23,7 @@ y
y
EOF"
);
+ print "Removed git user " . colored($usr, 'bold yellow') . ".\n";
exit;
}