on master help sign in
Merge pull request #1226 from mdevlamynck/fix-scripts
3af7a6bEthan P
assets/create.sh+1−1
@@ -1,4 +1,4 @@
1−#!/bin/bash
1+#!/usr/bin/env bash
2set -euo pipefail
2set -euo pipefail
3
3
4ASSET_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
4ASSET_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]}")"
2
4
3if ! which hyperfine > /dev/null 2>&1; then
5if ! which hyperfine > /dev/null 2>&1; then
4 echo "'hyperfine' does not seem to be installed."
6 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]}")"
2
4
3if ! which hyperfine > /dev/null 2>&1; then
5if ! which hyperfine > /dev/null 2>&1; then
4 echo "'hyperfine' does not seem to be installed."
6 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
2
2
3set -eou pipefail
3set -eou pipefail
4
4
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]}")"
2
4
3python="python3"
5python="python3"
4if ! command -v python3 &>/dev/null; then python="python"; fi
6if ! command -v python3 &>/dev/null; then python="python"; fi