From c01fcd50ec782fd45f71f0976947f3e97c774e92 Mon Sep 17 00:00:00 2001 From: KallistiMan Date: Sat, 9 Jul 2016 18:59:24 +0200 Subject: [PATCH 1/2] Respect -w when using -a $WORKING_DIR should always be correct so always passing it along should be the most efficient way to make sure the original -w is respected, right? -a is still not passing along -f but I'm not sure that is the best thing to do, but I'll make another fork for that. --- getssl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/getssl b/getssl index 0e2df46..cab6413 100755 --- a/getssl +++ b/getssl @@ -717,7 +717,7 @@ if [ ${_CHECK_ALL} -eq 1 ]; then for dir in ${DOMAIN_STORAGE}/*; do if [ -d "$dir" ]; then debug "Checking $dir" - cmd="$0" + cmd="$0 -w $WORKING_DIR" if [ ${_USE_DEBUG} -eq 1 ]; then cmd="$cmd -d" fi From 508a9591a177ffa9f8bfcf60e0119e5428f47d29 Mon Sep 17 00:00:00 2001 From: KallistiMan Date: Sat, 9 Jul 2016 19:07:55 +0200 Subject: [PATCH 2/2] Moved adding of working dir to after -d/-q --- getssl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/getssl b/getssl index cab6413..e2513bc 100755 --- a/getssl +++ b/getssl @@ -717,14 +717,14 @@ if [ ${_CHECK_ALL} -eq 1 ]; then for dir in ${DOMAIN_STORAGE}/*; do if [ -d "$dir" ]; then debug "Checking $dir" - cmd="$0 -w $WORKING_DIR" + cmd="$0" if [ ${_USE_DEBUG} -eq 1 ]; then cmd="$cmd -d" fi if [ ${_QUIET} -eq 1 ]; then cmd="$cmd -q" fi - cmd="$cmd $(basename "$dir")" + cmd="$cmd -w $WORKING_DIR $(basename "$dir")" debug "CMD: $cmd" eval "$cmd"