mirror of
				https://github.com/open-metadata/OpenMetadata.git
				synced 2025-11-04 12:36:23 +00:00 
			
		
		
		
	fix(prerequisite): add check for bash version (#15103)
This commit is contained in:
		
							parent
							
								
									be0a9c86b3
								
							
						
					
					
						commit
						c9aa6aa1ea
					
				@ -12,6 +12,16 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
set -eu
 | 
					set -eu
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					set +e
 | 
				
			||||||
 | 
					declare -A test_map
 | 
				
			||||||
 | 
					res=$?
 | 
				
			||||||
 | 
					if [[ $res -ne 0 ]]; then
 | 
				
			||||||
 | 
					  echo "✗ ERROR: declare -A is not supported. Do you have bash version 4.0 or higher installed?"
 | 
				
			||||||
 | 
					  exit 2
 | 
				
			||||||
 | 
					fi
 | 
				
			||||||
 | 
					set -e
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
declare -A python
 | 
					declare -A python
 | 
				
			||||||
python["name"]="Python"
 | 
					python["name"]="Python"
 | 
				
			||||||
python["version_command"]="python --version 2>&1 | awk '{print \$2}'"
 | 
					python["version_command"]="python --version 2>&1 | awk '{print \$2}'"
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user