From d1b99073173d5d668ed773fad68b28df36db3a4d Mon Sep 17 00:00:00 2001 From: Thomas Lange Date: Thu, 31 May 2018 23:07:22 +0200 Subject: Call "shift" after the getopts while loop --- painless-le.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/painless-le.sh b/painless-le.sh index 48d65ed..316d1cf 100755 --- a/painless-le.sh +++ b/painless-le.sh @@ -30,7 +30,7 @@ do C) ARGUMENT_CERTIFICATE_ONLY="$OPTARG" ;; F) ARGUMENT_CERTIFICATE_FULL="$OPTARG" ;; esac -done +done; shift $((OPTIND-1)) #=============================================================================== # Checking if all required command-line arguments are provided -- cgit v1.2.3