From ad443a5a9732d12905e83b672a111cd8b156ceea Mon Sep 17 00:00:00 2001 From: starbr3aker Date: Wed, 15 Jan 2025 22:58:37 +0530 Subject: [PATCH 1/3] waEnsureOnPathFix --- setup.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.sh b/setup.sh index 8c6209f..96c1515 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 From 7b939fc5419447ae3daccd3e0e99bd9e52acb7b5 Mon Sep 17 00:00:00 2001 From: starbr3aker Date: Wed, 15 Jan 2025 23:12:36 +0530 Subject: [PATCH 2/3] waEnsureOnPathFix --- setup.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.sh b/setup.sh index 96c1515..a724e1e 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 From 4884cc97ca7901b007876b03a1628551565304af Mon Sep 17 00:00:00 2001 From: starbr3aker Date: Wed, 15 Jan 2025 23:20:17 +0530 Subject: [PATCH 3/3] waEnsureOnPathFix --- setup.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.sh b/setup.sh index a724e1e..d5ce356 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