feat: Add --list-json to new run script

This commit is contained in:
zen0bit 2024-04-21 00:08:52 +02:00 committed by Martin Wimpress
parent 4099961577
commit b3524d1106
1 changed files with 6 additions and 2 deletions

View File

@ -3552,12 +3552,16 @@ case "${1}" in
'--list-csv'|'-lc'|'list') '--list-csv'|'-lc'|'list')
list_csv list_csv
;; ;;
#TODO: Argument list_json should be DEPRECATED!
'--list-json'|'-lj'|'list_json')
list_json
;;
esac esac
if [ -n "${1}" ]; then if [ -n "${1}" ]; then
OS="${1,,}" OS="${1,,}"
if [ "${OS}" == "list_json" ]; then if [ "${OS}" == "list" ] || [ "${OS}" == "list_csv" ]; then
list_json list_csv
fi fi
else else
error_specify_os error_specify_os