Skip to content
Snippets Groups Projects
Commit ad443a5a authored by starbr3aker's avatar starbr3aker
Browse files

waEnsureOnPathFix

parent 6c3d5824
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment