on master help sign in
Merge pull request #1226 from mdevlamynck/fix-scripts

Shell script improvements

commit3af7a6b082f471207474b34824789816ee2ddbf3 authorEthan P <32112321+eth-p@users.noreply.github.com> dateSun 4 Oct 2020, 13:49 (6 years ago) parent2e9851912340c1
5 files changed+11−5
assets/create.sh+1−1 tests/benchmarks/comparison.sh+3−1 tests/benchmarks/run-benchmarks.sh+3−1 tests/syntax-tests/regression_test.sh+1−1 tests/syntax-tests/update.sh+3−1
assets/create.sh+1−1
@@ -1,4 +1,4 @@
1−#!/bin/bash
1+#!/usr/bin/env bash
22set -euo pipefail
33
44ASSET_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
tests/benchmarks/comparison.shmode 100644 → 100755+3−1
@@ -1,4 +1,6 @@
1−#!/bin/bash
1+#!/usr/bin/env bash
2+
3+cd "$(dirname "${BASH_SOURCE[0]}")"
24
35if ! which hyperfine > /dev/null 2>&1; then
46 echo "'hyperfine' does not seem to be installed."
tests/benchmarks/run-benchmarks.shmode 100644 → 100755+3−1
@@ -1,4 +1,6 @@
1−#!/bin/bash
1+#!/usr/bin/env bash
2+
3+cd "$(dirname "${BASH_SOURCE[0]}")"
24
35if ! which hyperfine > /dev/null 2>&1; then
46 echo "'hyperfine' does not seem to be installed."
tests/syntax-tests/regression_test.sh+1−1
@@ -1,4 +1,4 @@
1−#!/bin/bash
1+#!/usr/bin/env bash
22
33set -eou pipefail
44
tests/syntax-tests/update.sh+3−1
@@ -1,4 +1,6 @@
1−#!/bin/bash
1+#!/usr/bin/env bash
2+
3+cd "$(dirname "${BASH_SOURCE[0]}")"
24
35python="python3"
46if ! command -v python3 &>/dev/null; then python="python"; fi