show usage if list has no argument, instead of "set -u" error

This commit is contained in:
Jérémy Lecour 2022-03-11 11:36:20 +01:00 committed by Jérémy Lecour
parent 4b2b8a95ff
commit 593cf4a9f3
1 changed files with 2 additions and 2 deletions

View File

@ -763,7 +763,7 @@ list() {
exit 0
fi
if [ -z "${1}" ]; then
if [ -z "${1:-}" ]; then
show_usage >&2
exit 1
fi
@ -772,7 +772,7 @@ list() {
list_revoked=1
while :; do
case "${1}" in
case "${1:-}" in
-a|--all)
list_valid=0
list_revoked=0