mirror of
https://github.com/community-scripts/ProxmoxVE
synced 2026-11-10 16:06:08 +00:00
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:
1 parent
42a7d57a42
commit
02cede3f5d
1 file changed
+2
@@ -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)"
|
||||
|
||||
Reference in new issue
Block a user