If SYNO_Create is not set here, print the nice message

This commit is contained in:
Brian Hartvigsen 2020-05-16 00:05:35 -06:00
parent d15c14ab93
commit 668967a719
No known key found for this signature in database
GPG Key ID: 46EEA32081255BEB

View File

@ -113,7 +113,7 @@ synology_dsm_deploy() {
id=$(echo "$response" | sed -n "s/.*\"desc\":\"$SYNO_Certificate\",\"id\":\"\([^\"]*\).*/\1/p")
_debug2 id "$id"
if [ -z "$id" ] && [ -z "${SYNO_Create:?}" ]; then
if [ -z "$id" ] && [ -z "$SYNO_Create" ]; then
_err "Unable to find certificate: $SYNO_Certificate and \$SYNO_Create is not set"
return 1
fi