Set correct variable for data upload mode

This commit is contained in:
Michael Boelen 2017-02-21 15:40:49 +01:00
parent a19a34cbf3
commit 1c59bfd6f1
1 changed files with 2 additions and 2 deletions

View File

@ -357,8 +357,8 @@
# Colored output
upload)
SETTING_UPLOAD=no # default
FIND=$(echo "${VALUE}" | egrep "^(1|true|yes)$") && COLORS=0
if [ ! -z "${FIND}" ]; then SETTING_UPLOAD=1; UPLOAD_DATA=1; fi
FIND=$(echo "${VALUE}" | egrep "^(1|true|yes)$") && DATA_UPLOAD=1
if [ ! -z "${FIND}" ]; then SETTING_UPLOAD=1; fi
Debug "Upload set to ${SETTING_UPLOAD}"
AddSetting "upload" "${SETTING_UPLOAD}" "Data upload after scanning"
unset SETTING_UPLOAD