Add change dir to script dir to allow running from project root dir
commit12340c1d10659df2f1b84a7040fa293b6b853b76
authorMatthias Devlamynck <matthias.devlamynck@mailoo.org>
dateSun 4 Oct 2020, 12:07 (6 years ago)
parentb50bd58
tests/benchmarks/comparison.sh+2
@@ -1,5 +1,7 @@
11#!/usr/bin/env bash
22
3+cd "$(dirname "${BASH_SOURCE[0]}")"
4+
35if ! which hyperfine > /dev/null 2>&1; then
46 echo "'hyperfine' does not seem to be installed."
57 echo "You can get it here: https://github.com/sharkdp/hyperfine"
tests/benchmarks/run-benchmarks.sh+2
@@ -1,5 +1,7 @@
11#!/usr/bin/env bash
22
3+cd "$(dirname "${BASH_SOURCE[0]}")"
4+
35if ! which hyperfine > /dev/null 2>&1; then
46 echo "'hyperfine' does not seem to be installed."
57 echo "You can get it here: https://github.com/sharkdp/hyperfine"
tests/syntax-tests/update.sh+2
@@ -1,5 +1,7 @@
11#!/usr/bin/env bash
22
3+cd "$(dirname "${BASH_SOURCE[0]}")"
4+
35python="python3"
46if ! command -v python3 &>/dev/null; then python="python"; fi
57"$python" create_highlighted_versions.py -O highlighted