From 191ba257d910a712c5c8635a1d807e5e68095ef6 Mon Sep 17 00:00:00 2001 From: Jeremy Dubois Date: Tue, 29 Mar 2022 18:19:33 +0200 Subject: [PATCH] Fix parsing options when no option is given --- shellpki | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/shellpki b/shellpki index e8aae25..c7abe98 100755 --- a/shellpki +++ b/shellpki @@ -373,7 +373,7 @@ create() { # Parse options # based on https://gist.github.com/deshion/10d3cb5f88a21671e17a while :; do - case $1 in + case ${1:-} in -f|--file|--csr-file) # csr-file option, with value separated by space if [ -n "$2" ]; then @@ -770,7 +770,7 @@ revoke() { # Parse options # based on https://gist.github.com/deshion/10d3cb5f88a21671e17a while :; do - case $1 in + case ${1:-} in --non-interactive) non_interactive=1 ;;