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:
Chris
2025-09-23 14:00:48 -04:00
committed by GitHub
parent 42a7d57a42
commit 02cede3f5d

View File

@@ -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)"