diff --git a/misc/tools.func b/misc/tools.func index 691f1937e..d389d9a5d 100644 --- a/misc/tools.func +++ b/misc/tools.func @@ -2021,6 +2021,8 @@ function setup_yq() { } fi + [[ ":$PATH:" != *":/usr/local/bin:"* ]] && echo 'export PATH="/usr/local/bin:$PATH"' >>~/.bashrc && source ~/.bashrc + if command -v yq &>/dev/null; then if ! yq --version 2>&1 | grep -q 'mikefarah'; then rm -f "$(command -v yq)"