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

waEnsureOnPathFix

parent ad443a5a
Branches
No related tags found
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