Update truenas.sh

This commit is contained in:
F-Plass 2021-02-07 19:19:04 +01:00
parent 052c9be111
commit f8c11a324a

View File

@ -187,7 +187,7 @@ truenas_deploy() {
_ret=$?
_debug2 CURL_RETURN "$_ret"
if [ -n "$_add_cert_result" ] && [ -n "$_activate_result" ] && [ "$_ret" == "52" ]; then
if [ -n "$_add_cert_result" ] && [ -n "$_activate_result" ] && [ "$_ret" = "52" ]; then
return 0
else
_err "Please refer to https://curl.haxx.se/libcurl/c/libcurl-errors.html for error code: $_ret"