diff --git a/scripts/deploy.sh b/scripts/deploy.sh
index 41b276eb16091eb81674645fc0082d982ac139e1..467e02d072d0e0fdfec10c98277be6e3ac4b49f0 100644
--- a/scripts/deploy.sh
+++ b/scripts/deploy.sh
@@ -97,7 +97,7 @@ svn status
 
 # Stop here unless this is a merge into master.
 if [[ -z "$CI_COMMIT_REF_NAME" || -z "$WP_ORG_RELEASE_REF" || "$CI_COMMIT_REF_NAME" != "$WP_ORG_RELEASE_REF" ]]; then
-	echo "𝘅︎ EXITING before commit step as this is the '${CI_COMMIT_REF_NAME}' ref, not the '${WP_ORG_RELEASE_TAG}' ref." 1>&2
+	echo "𝘅︎ EXITING before commit step as this is the '${CI_COMMIT_REF_NAME}' ref, not the '${WP_ORG_RELEASE_REF}' ref." 1>&2
 	exit 0
 fi