diff --git a/plexupdate.sh b/plexupdate.sh index 9a04905..e23add1 100755 --- a/plexupdate.sh +++ b/plexupdate.sh @@ -396,10 +396,14 @@ if [ "${SAVECONFIG}" = "yes" ]; then -o ${VAR} = "QUIET" ]; then if [ ${!VAR} = "yes" ]; then - echo "${VAR}=${!VAR}" >> ${CONFIGFILE} + echo "${VAR}='${!VAR}'" >> ${CONFIGFILE} + fi + elif [ ${VAR} = "PLEXPORT" ]; then + if [ ! "${!VAR}" = "32400" ]; then + echo "${VAR}='${!VAR}'" >> ${CONFIGFILE} fi else - echo "${VAR}=${!VAR}" >> ${CONFIGFILE} + echo "${VAR}='${!VAR}'" >> ${CONFIGFILE} fi fi done