mirror of
				https://github.com/sharkdp/bat.git
				synced 2025-10-30 22:54:07 +00:00 
			
		
		
		
	Merge pull request #1226 from mdevlamynck/fix-scripts
Shell script improvements
This commit is contained in:
		
							
								
								
									
										4
									
								
								tests/benchmarks/comparison.sh
									
									
									
									
										vendored
									
									
										
										
										Normal file → Executable file
									
								
							
							
						
						
									
										4
									
								
								tests/benchmarks/comparison.sh
									
									
									
									
										vendored
									
									
										
										
										Normal file → Executable file
									
								
							| @@ -1,4 +1,6 @@ | ||||
| #!/bin/bash | ||||
| #!/usr/bin/env bash | ||||
|  | ||||
| cd "$(dirname "${BASH_SOURCE[0]}")" | ||||
|  | ||||
| if ! which hyperfine > /dev/null 2>&1; then | ||||
|     echo "'hyperfine' does not seem to be installed." | ||||
|   | ||||
							
								
								
									
										4
									
								
								tests/benchmarks/run-benchmarks.sh
									
									
									
									
										vendored
									
									
										
										
										Normal file → Executable file
									
								
							
							
						
						
									
										4
									
								
								tests/benchmarks/run-benchmarks.sh
									
									
									
									
										vendored
									
									
										
										
										Normal file → Executable file
									
								
							| @@ -1,4 +1,6 @@ | ||||
| #!/bin/bash | ||||
| #!/usr/bin/env bash | ||||
|  | ||||
| cd "$(dirname "${BASH_SOURCE[0]}")" | ||||
|  | ||||
| if ! which hyperfine > /dev/null 2>&1; then | ||||
|     echo "'hyperfine' does not seem to be installed." | ||||
|   | ||||
							
								
								
									
										2
									
								
								tests/syntax-tests/regression_test.sh
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								tests/syntax-tests/regression_test.sh
									
									
									
									
										vendored
									
									
								
							| @@ -1,4 +1,4 @@ | ||||
| #!/bin/bash | ||||
| #!/usr/bin/env bash | ||||
|  | ||||
| set -eou pipefail | ||||
|  | ||||
|   | ||||
							
								
								
									
										4
									
								
								tests/syntax-tests/update.sh
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										4
									
								
								tests/syntax-tests/update.sh
									
									
									
									
										vendored
									
									
								
							| @@ -1,4 +1,6 @@ | ||||
| #!/bin/bash | ||||
| #!/usr/bin/env bash | ||||
|  | ||||
| cd "$(dirname "${BASH_SOURCE[0]}")" | ||||
|  | ||||
| python="python3" | ||||
| if ! command -v python3 &>/dev/null; then python="python"; fi | ||||
|   | ||||
		Reference in New Issue
	
	Block a user