fix quoting -- SC2046: Quote this to prevent word splitting.

This commit is contained in:
Hossy 2022-07-21 15:03:25 -05:00
parent be64738c8b
commit 3a396abc17

View File

@ -58,7 +58,7 @@ synology_dsm_deploy() {
# defaulting to localhost and http because it's localhost... # defaulting to localhost and http because it's localhost...
[ -n "${SYNO_Scheme}" ] || SYNO_Scheme="http" [ -n "${SYNO_Scheme}" ] || SYNO_Scheme="http"
[ -n "${SYNO_Hostname}" ] || SYNO_Hostname="localhost" [ -n "${SYNO_Hostname}" ] || SYNO_Hostname="localhost"
[ -n "${SYNO_Port}" ] || SYNO_Port=$( [ $(echo $SYNO_Scheme | tr '[:upper:]' '[:lower:]') = "https" ] && echo '5001' || echo '5000' ) [ -n "${SYNO_Port}" ] || SYNO_Port=$( [ "$(echo $SYNO_Scheme | tr '[:upper:]' '[:lower:]')" = "https" ] && echo '5001' || echo '5000' )
_savedeployconf SYNO_Scheme "$SYNO_Scheme" _savedeployconf SYNO_Scheme "$SYNO_Scheme"
_savedeployconf SYNO_Hostname "$SYNO_Hostname" _savedeployconf SYNO_Hostname "$SYNO_Hostname"