1
0
mirror of https://github.com/sharkdp/bat synced 2026-08-07 19:31:42 +00:00

Add change dir to script dir to allow running from project root dir

This commit is contained in:
Matthias Devlamynck
2020-10-04 12:07:22 +02:00
parent b50bd58795
commit 12340c1d10
3 changed files with 6 additions and 0 deletions
+2
View File
@@ -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
View File
@@ -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"