diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2021-08-05 10:14:10 -0400 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2021-08-05 10:14:10 -0400 |
commit | 302e9987fe732e7e4154386058fff2720fc68fc3 (patch) | |
tree | 6e3752b8cbac966eef0c99f3338fd7b498ea5c41 | |
parent | 0d41d68b8d907cf1246645a01b43b839e5dbe44b (diff) |
Use /usr/bin/env bash as the shebang in scripts
This should reduce the need for patches on the BSDs.
-rw-r--r-- | completions/bfs.bash | 2 | ||||
-rwxr-xr-x | flags.sh | 2 | ||||
-rwxr-xr-x | tests.sh | 2 | ||||
-rwxr-xr-x | tests/find-color.sh | 2 | ||||
-rwxr-xr-x | tests/ls-color.sh | 2 | ||||
-rwxr-xr-x | tests/remove-sibling.sh | 2 | ||||
-rwxr-xr-x | tests/sort-args.sh | 2 |
7 files changed, 7 insertions, 7 deletions
diff --git a/completions/bfs.bash b/completions/bfs.bash index 25c6fd5..c1353aa 100644 --- a/completions/bfs.bash +++ b/completions/bfs.bash @@ -1,4 +1,4 @@ -#!/bin/bash +#!/hint/bash ############################################################################ # bfs # @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -e @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash ############################################################################ # bfs # diff --git a/tests/find-color.sh b/tests/find-color.sh index 6ae6eba..ecdd5af 100755 --- a/tests/find-color.sh +++ b/tests/find-color.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash ############################################################################ # bfs # diff --git a/tests/ls-color.sh b/tests/ls-color.sh index e8cf038..c82a58d 100755 --- a/tests/ls-color.sh +++ b/tests/ls-color.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash ############################################################################ # bfs # diff --git a/tests/remove-sibling.sh b/tests/remove-sibling.sh index ddf81d7..c5af88a 100755 --- a/tests/remove-sibling.sh +++ b/tests/remove-sibling.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash for file in "${1%/*}"/*; do if [ "$file" != "$1" ]; then diff --git a/tests/sort-args.sh b/tests/sort-args.sh index 5214598..f801d3b 100755 --- a/tests/sort-args.sh +++ b/tests/sort-args.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash args=($({ for arg; do echo "$arg"; done } | sort)) echo "${args[@]}" |