Solve 'lists' in case instead in iffi
This commit is contained in:
parent
5f6495c871
commit
5911d2af41
9
quickget
9
quickget
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue