Properly added case for an absent subcommand

This commit is contained in:
Alex Tavarez
2025-09-15 14:29:13 -04:00
parent 3c0afdaf52
commit 39c92a7479

View File

@@ -64,6 +64,10 @@ print_menu () {
echo "Placeholder content" echo "Placeholder content"
} }
if [ -z "$1" ]; then
exit 1
fi
if ! [ -z "$1" ] && [ "$1" == "init" ]; then if ! [ -z "$1" ] && [ "$1" == "init" ]; then
while getopts "d:p:k:f:c:v:" opt; do while getopts "d:p:k:f:c:v:" opt; do
case $opt in case $opt in