commit afac03b4a9b928e64d81dbd4ee493088e55b71f2
parent 9173555cad65da0fefc06d209291dabbeaf32fc0
Author: Tyler Clark <tyler.clark@foxide.xyz>
Date: Sun, 9 Feb 2025 21:47:07 -0500
Getting flags to work properly and began working on main part of script
Diffstat:
1 file changed, 15 insertions(+), 3 deletions(-)
diff --git a/scripts/NewRepo.sh b/scripts/NewRepo.sh
@@ -15,14 +15,26 @@ help()
echo "-t, --template: Makes the repository a template repository"
}
+createRepo()
+{
+
+}
+
+echo "$#"
+
+if [ "$#" -eq 0 ]; then
+ help
+fi
+
while getopts ":hptn:" f; do
case $f in
- h | *) help
- break
- ;;
n) echo "Dir name: ${OPTARG}.git";;
p) echo "Repo will be private";;
t) echo "Repo will be a template";;
+ h | *) help
+ break
+ ;;
esac
done
shift `expr $OPTIND - 1`
+