tools.func: Check for /usr/local/bin in PATH during yq setup (#7856)
- My Booklore update failed due to yq not being found despite installed
This commit is contained in:
parent
42a7d57a42
commit
02cede3f5d
@ -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)"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user