If SYNO_Create is not set here, print the nice message

pull/2935/head
Brian Hartvigsen 5 years ago
parent d15c14ab93
commit 668967a719
No known key found for this signature in database
GPG Key ID: 46EEA32081255BEB

@ -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

Loading…
Cancel
Save