mirror of
				https://github.com/sharkdp/bat.git
				synced 2025-11-04 00:51:56 +00:00 
			
		
		
		
	Add change dir to script dir to allow running from project root dir
This commit is contained in:
		
							
								
								
									
										2
									
								
								tests/benchmarks/comparison.sh
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								tests/benchmarks/comparison.sh
									
									
									
									
										vendored
									
									
								
							@@ -1,5 +1,7 @@
 | 
			
		||||
#!/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."
 | 
			
		||||
    echo "You can get it here: https://github.com/sharkdp/hyperfine"
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										2
									
								
								tests/benchmarks/run-benchmarks.sh
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								tests/benchmarks/run-benchmarks.sh
									
									
									
									
										vendored
									
									
								
							@@ -1,5 +1,7 @@
 | 
			
		||||
#!/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."
 | 
			
		||||
    echo "You can get it here: https://github.com/sharkdp/hyperfine"
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										2
									
								
								tests/syntax-tests/update.sh
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								tests/syntax-tests/update.sh
									
									
									
									
										vendored
									
									
								
							@@ -1,5 +1,7 @@
 | 
			
		||||
#!/usr/bin/env bash
 | 
			
		||||
 | 
			
		||||
cd "$(dirname "${BASH_SOURCE[0]}")"
 | 
			
		||||
 | 
			
		||||
python="python3"
 | 
			
		||||
if ! command -v python3 &>/dev/null; then python="python"; fi
 | 
			
		||||
"$python" create_highlighted_versions.py -O highlighted
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user