From 50c7e9e42c6d8de53c7aaf02c4a72df96051c86d Mon Sep 17 00:00:00 2001 From: Eric Claeys <83164203+EricClaeys@users.noreply.github.com> Date: Sat, 20 Jul 2024 01:15:38 -0600 Subject: [PATCH] Update postData.sh: fix message about where files are uploaded to --- scripts/postData.sh | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/scripts/postData.sh b/scripts/postData.sh index 200bd1db4..cd233d51a 100755 --- a/scripts/postData.sh +++ b/scripts/postData.sh @@ -92,16 +92,18 @@ WEBS="" WHERE_TO="" if [[ "$( settings ".uselocalwebsite" )" == "true" ]]; then WEBS+=" --local-web" - WHERE_TO="local Website" + [[ -n ${WHERE_TO} ]] && WHERE_TO+=", " + WHERE_TO+="local Website" fi if [[ "$( settings ".useremotewebsite" )" == "true" ]]; then WEBS+=" --remote-web" [[ -n ${WHERE_TO} ]] && WHERE_TO+=", " - WHERE_TO="remote Website" + WHERE_TO+="remote Website" fi if [[ "$( settings ".useremoteserver" )" == "true" ]]; then + USE_REMOTE_SERVER="true" [[ -n ${WHERE_TO} ]] && WHERE_TO+=", " - WHERE_TO="remote server" + WHERE_TO+="remote server" fi if [[ -z ${WHERE_TO} ]]; then @@ -208,7 +210,7 @@ if [[ -n ${WEBS} ]]; then done fi - [[ ${FROM_WEBUI} == "true" ]] && echo "Uploaded configuration files to ${WHERE_TO}." + [[ ${FROM_WEBUI} == "true" ]] && echo "Uploaded configuration files to: ${WHERE_TO}." fi exit 0