Browse Source

If SYNO_Create is not set here, print the nice message

pull/2935/head
Brian Hartvigsen 4 years ago
parent
commit
668967a719
No known key found for this signature in database GPG Key ID: 46EEA32081255BEB
  1. 2
      deploy/synology_dsm.sh

2
deploy/synology_dsm.sh

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