diff --git a/setup.sh b/setup.sh
index b7d930d6814a9b3295c8a053900193edf2719fed..5ca6cf154c62d4c3a58fa7803e8a5568af59ea6e 100755
--- a/setup.sh
+++ b/setup.sh
@@ -1653,7 +1653,7 @@ function waInstall() {
 # Name: 'waEnsureOnPath'
 # Role: Ensures that $BIN_PATH is on $PATH.
 function waEnsureOnPath() {
-    if [[ ":$PATH:" == *":$BIN_PATH:"* ]]; then
+    if [[ ":$PATH:" != *":$BIN_PATH:"* ]]; then
         echo -e "${WARNING_TEXT}[WARNING]${CLEAR_TEXT} It seems like '${BIN_PATH}' is not on PATH."
         echo -e "${WARNING_TEXT}[WARNING]${CLEAR_TEXT} You can add it by running:"
         # shellcheck disable=SC2086