commit 060c66a5758f7af870061a973bb2bda590670cd4
parent aaf5bcee55f5d54fa26fd8afb32df77dac0625a6
Author: Tyler Clark <tyler.clark@foxide.xyz>
Date: Sun, 26 Apr 2026 12:37:37 -0400
Adding helpful menu to the script.
Diffstat:
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/scripts/rmrepo b/scripts/rmrepo
@@ -16,6 +16,7 @@ help()
{
echo "-h: Prints this help menu"
echo "-n: Name of repository to be deleted"
+ echo "-r: Remote server"
echo "-z: Enables FZF support for selecting repo, must have fzf installed (not implemented yet)"
exit 0;
@@ -48,9 +49,10 @@ if [ "$#" -eq 0 ]; then
help
fi
-while getopts ":hzn:" f; do
+while getopts ":hzr:n:" f; do
case $f in
n) NAME=${OPTARG};;
+ r) REMOTE=${OPTARG};;
z) FZF=1;;
h | *) help
exit
@@ -59,4 +61,4 @@ while getopts ":hzn:" f; do
done
shift `expr $OPTIND - 1`
-deleteRepo $NAME
+deleteRepo $NAME $REMOTE