mirror of
				https://github.com/community-scripts/ProxmoxVE.git
				synced 2025-11-04 10:22:50 +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:
		@@ -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