mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2026-04-28 11:50:06 +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:
parent
42a7d57a42
commit
02cede3f5d
1 changed files with 2 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue