add short commands

This commit is contained in:
zenobit 2023-10-26 14:55:32 +02:00 committed by Martin Wimpress
parent df5cb3c1b7
commit 5ffd8c0626

View File

@ -25,7 +25,7 @@ function cleanup() {
fi fi
} }
if [ "${1}" == '--test-iso-url' ]; then if [ "${1}" == '--test-iso-url' ] || [ "${1}" == '-t' ]; then
test_iso_url="on" test_iso_url="on"
if [ -n "$4" ]; then if [ -n "$4" ]; then
set -- "$2" "$3" "$4" set -- "$2" "$3" "$4"
@ -34,7 +34,7 @@ if [ "${1}" == '--test-iso-url' ]; then
else else
set -- "$2" set -- "$2"
fi fi
elif [ "${1}" == '--show-iso-url' ]; then elif [ "${1}" == '--show-iso-url' ] || [ "${1}" == '-s' ]; then
show_iso_url="on" show_iso_url="on"
if [ -n "$4" ]; then if [ -n "$4" ]; then
set -- "$2" "$3" "$4" set -- "$2" "$3" "$4"
@ -43,7 +43,7 @@ elif [ "${1}" == '--show-iso-url' ]; then
else else
set -- "$2" set -- "$2"
fi fi
elif [ "${1}" == '--open-distro-homepage' ]; then elif [ "${1}" == '--open-distro-homepage' ] || [ "${1}" == '-o' ]; then
open_distro_homepage="on" open_distro_homepage="on"
set -- "$2" set -- "$2"
fi fi