Properly added case for an absent subcommand
This commit is contained in:
@@ -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
|
||||||
|
Reference in New Issue
Block a user