Solve 'lists' in case instead in iffi

This commit is contained in:
zen0bit 2024-04-21 19:02:13 +02:00 committed by Martin Wimpress
parent 5f6495c871
commit 5911d2af41
1 changed files with 3 additions and 6 deletions

View File

@ -3549,11 +3549,11 @@ case "${1}" in
just="show" just="show"
shift shift
;; ;;
#TODO: Argument list should be DEPRECATED! #TODO: Argument without dashes should be DEPRECATED!
'--list-csv'|'-lc'|'list') '--list-csv'|'-lc'|'list'|'list_csv'|'lc')
list_csv list_csv
;; ;;
#TODO: Argument list_json should be DEPRECATED! #TODO: Argument without dashes should be DEPRECATED!
'--list-json'|'-lj'|'list_json') '--list-json'|'-lj'|'list_json')
list_json list_json
;; ;;
@ -3572,9 +3572,6 @@ esac
if [ -n "${1}" ]; then if [ -n "${1}" ]; then
OS="${1,,}" OS="${1,,}"
if [ "${OS}" == "list" ] || [ "${OS}" == "list_csv" ]; then
list_csv
fi
else else
error_specify_os error_specify_os
fi fi