MinimalistGit

Project to automate creating git repos on a minimal 'git daemon' server.
Log | Files | Refs | README | LICENSE

commit 32a746be00c833650be60a7ac9d0cba2d370568c
parent 3fd7e094a174e93c76adb8cabff76d14b9ccae83
Author: Tyler Clark <tyler.clark@foxide.xyz>
Date:   Sun,  9 Feb 2025 21:47:07 -0500

Began working on DeleteRepo.sh

Diffstat:
Mscripts/DeleteRepo.sh | 34++++++++++++++++++++++++++++++++++
1 file changed, 34 insertions(+), 0 deletions(-)

diff --git a/scripts/DeleteRepo.sh b/scripts/DeleteRepo.sh @@ -5,3 +5,37 @@ # -h, --help: Prints a help scree # -n, --name: The name of the repo to delete +# -z, --fzf: Enables fzf support for the selection of repo to be deleted (Must have fzf installed on system) + +# I should come up with some sort of confirmation for deleting the repo as well + +help() +{ + echo "-h: Prints this help menu" + echo "-n: Name of repository to be deleted" + echo "-z: Enables FZF support for selecting repo, must have fzf installed" +} + +deleteRepo() +{ + for i in $( ls ); do + echo "$i" + done +} + +if [ "$#" -eq 0 ]; then + for i in $( ls -d [*git,*private,*template] ); do + echo "$i" + done +fi + +while getopts ":hzn:" f; do + case $f in + n) NAME=${OPTART};; + z) FZF=1;; + h | *) help + exit + ;; + esac +done +shift `expr $OPTIND - 1`