mirror of
https://github.com/sharkdp/bat.git
synced 2025-01-31 10:11:07 +00:00
Replace #!/bin/bash with #!/usr/bin/env bash to improve compatibility with systems where /bin/bash is not available
This commit is contained in:
parent
203d0bd8ae
commit
b50bd58795
2
assets/create.sh
vendored
2
assets/create.sh
vendored
@ -1,4 +1,4 @@
|
|||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
|
|
||||||
ASSET_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
ASSET_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||||
|
2
tests/benchmarks/comparison.sh
vendored
Normal file → Executable file
2
tests/benchmarks/comparison.sh
vendored
Normal file → Executable file
@ -1,4 +1,4 @@
|
|||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
if ! which hyperfine > /dev/null 2>&1; then
|
if ! which hyperfine > /dev/null 2>&1; then
|
||||||
echo "'hyperfine' does not seem to be installed."
|
echo "'hyperfine' does not seem to be installed."
|
||||||
|
2
tests/benchmarks/run-benchmarks.sh
vendored
Normal file → Executable file
2
tests/benchmarks/run-benchmarks.sh
vendored
Normal file → Executable file
@ -1,4 +1,4 @@
|
|||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
if ! which hyperfine > /dev/null 2>&1; then
|
if ! which hyperfine > /dev/null 2>&1; then
|
||||||
echo "'hyperfine' does not seem to be installed."
|
echo "'hyperfine' does not seem to be installed."
|
||||||
|
2
tests/syntax-tests/regression_test.sh
vendored
2
tests/syntax-tests/regression_test.sh
vendored
@ -1,4 +1,4 @@
|
|||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
set -eou pipefail
|
set -eou pipefail
|
||||||
|
|
||||||
|
2
tests/syntax-tests/update.sh
vendored
Normal file → Executable file
2
tests/syntax-tests/update.sh
vendored
Normal file → Executable file
@ -1,4 +1,4 @@
|
|||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
python="python3"
|
python="python3"
|
||||||
if ! command -v python3 &>/dev/null; then python="python"; fi
|
if ! command -v python3 &>/dev/null; then python="python"; fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user