aboutsummaryrefslogtreecommitdiffstats
path: root/del_repo.sh
diff options
context:
space:
mode:
authorjwansek <eddie.atten.ea29@gmail.com>2022-09-20 23:38:36 +0100
committerjwansek <eddie.atten.ea29@gmail.com>2022-09-20 23:38:36 +0100
commit0622363f32676c19985396177c93dbc58785925f (patch)
tree86be4d15d2e8b60325829dfa39f1e840bdc94cfb /del_repo.sh
parenta45c5119711a4140b9710ef96ddf0578d5cf9cd3 (diff)
downloadgit-scripts-0622363f32676c19985396177c93dbc58785925f.tar.gz
git-scripts-0622363f32676c19985396177c93dbc58785925f.zip
Renamed scripts, improved README.md
Diffstat (limited to 'del_repo.sh')
-rwxr-xr-xdel_repo.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/del_repo.sh b/del_repo.sh
new file mode 100755
index 0000000..efd3421
--- /dev/null
+++ b/del_repo.sh
@@ -0,0 +1,10 @@
+#!/bin/bash
+
+echo -n "Input repo name to delete (excluding the .git suffix): "
+read repo
+
+rm -fvr /srv/git/$repo.git
+rm -fvr ~/$repo*
+rm -fv /srv/www/repositories/$repo*
+
+bash /srv/www/git-scripts/restart_ui.sh