Skip to content
Snippets Groups Projects
Unverified Commit 6e0da93a authored by Oskar Manhart's avatar Oskar Manhart Committed by GitHub
Browse files

Merge pull request #387 from starbr3aker/waEnsureOnPathFix

waEnsureOnPathFix
parents 6103770f 4884cc97
Branches
Tags
No related merge requests found
...@@ -1653,7 +1653,7 @@ function waInstall() { ...@@ -1653,7 +1653,7 @@ function waInstall() {
# Name: 'waEnsureOnPath' # Name: 'waEnsureOnPath'
# Role: Ensures that $BIN_PATH is on $PATH. # Role: Ensures that $BIN_PATH is on $PATH.
function waEnsureOnPath() { 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} It seems like '${BIN_PATH}' is not on PATH."
echo -e "${WARNING_TEXT}[WARNING]${CLEAR_TEXT} You can add it by running:" echo -e "${WARNING_TEXT}[WARNING]${CLEAR_TEXT} You can add it by running:"
# shellcheck disable=SC2086 # shellcheck disable=SC2086
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment