Skip to content

Commit 9c65d98

Browse files
authored
Merge pull request #1361 from EliahKagan/freebsd
Make bash script shebangs more portable
2 parents 2b81f99 + c31c175 commit 9c65d98

File tree

223 files changed

+137
-137
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

223 files changed

+137
-137
lines changed

etc/check-package-size.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22

33
set -eu -o pipefail
44

etc/copy-packetline.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22

33
set -euC -o pipefail
44

etc/corpus/clone-repos.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22

33
# Check if there is input on stdin
44
if [ -t 0 ]; then

gix-archive/tests/fixtures/basic.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22
set -eu -o pipefail
33

44
git init

gix-attributes/tests/fixtures/make_attributes_baseline.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22
set -eu -o pipefail
33

44
mkdir basics;

gix-command/tests/fixtures/win_path_lookup.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22
set -eu -o pipefail
33

44
mkdir a b c
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

gix-commitgraph/tests/fixtures/generation_number_overflow.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22
set -eu -o pipefail
33

44
function tick () {

gix-commitgraph/tests/fixtures/octopus_merges.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22
set -eu -o pipefail
33

44
git init -q

gix-commitgraph/tests/fixtures/single_commit.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22
set -eu -o pipefail
33

44
# The goal with this repo is to have the smallest commit-graph file possible, in the hopes that an

gix-commitgraph/tests/fixtures/single_commit_huge_dates.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22
set -eu -o pipefail
33

44
function setup_repo() {

gix-commitgraph/tests/fixtures/single_parent.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22
set -eu -o pipefail
33

44
git init -q

gix-commitgraph/tests/fixtures/split_chain.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22
set -eu -o pipefail
33

44
git init -q

gix-commitgraph/tests/fixtures/two_parents.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22
set -eu -o pipefail
33

44
git init -q

gix-config/tests/fixtures/config_with_worktree_extension.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22
set -eu -o pipefail
33

44
git init -q main-worktree
Binary file not shown.

gix-config/tests/fixtures/make_config_repo.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22
set -eu -o pipefail
33

44
git init -q

gix-credentials/tests/fixtures/all-but-credentials.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22

33
echo protocol=ftp
44
echo host=example.com:8080

gix-credentials/tests/fixtures/custom-helper.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22
set -eu
33

44
test "$1" = get && \
+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22

33
exit 42

gix-credentials/tests/fixtures/last-pass.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22
set -eu
33

44
echo username=user
+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22

33
echo password=pass
+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22

33
cat

gix-credentials/tests/fixtures/url.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22

33
echo protocol=ftp
44
echo host=github.com
+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22

33
echo username=user

gix-date/tests/fixtures/generate_git_date_baseline.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22
set -eu -o pipefail
33

44
git init;
Binary file not shown.
Binary file not shown.
Binary file not shown.

gix-diff/tests/fixtures/make_blob_repo.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22
set -eu -o pipefail
33

44
git init -q

gix-diff/tests/fixtures/make_diff_repo.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22
set -eu -o pipefail
33

44

gix-dir/tests/fixtures/many-symlinks.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22
set -eu -o pipefail
33

44
# Note that symlink creation fails on Windows for some reason,

gix-dir/tests/fixtures/many.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22
set -eu -o pipefail
33

44
# Nothing here may use symlinks so these fixtures can be used on windows as well.
Binary file not shown.
Binary file not shown.

gix-discover/tests/fixtures/make_basic_repo.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22
set -eu -o pipefail
33

44
git init -q

gix-discover/tests/fixtures/make_exfat_repo_darwin.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22
set -eu -o pipefail
33

44
[[ $(uname) == Darwin ]] || exit 1

gix-discover/tests/fixtures/make_submodules.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22
set -eu -o pipefail
33

44
git init -q module1

gix-filter/tests/fixtures/baseline.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22
set -eu -o pipefail
33

44
driver=${1:?First argument is the driver program supporting both process mode and clean/smudge}
Binary file not shown.

gix-filter/tests/fixtures/pipeline_repos.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22
set -eu -o pipefail
33

44
(mkdir all-filters && cd all-filters

gix-fsck/tests/fixtures/make_test_repos.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22
set -x
33
set -euo pipefail
44

Binary file not shown.

gix-glob/tests/fixtures/make_baseline.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22
set -eu -o pipefail
33

44
git init -q

gix-ignore/tests/fixtures/make_global_and_external_and_dir_ignores.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22
set -eu -o pipefail
33

44
cat <<EOF >user.exclude

gix-index/tests/fixtures/file_metadata.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22
set -eu -o pipefail
33

44
# The largest-possible date for Ext4, nanos are special there, but ont usually on other filesystems
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

gix-index/tests/fixtures/make_index/V2_empty.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22
set -eu -o pipefail
33

44
git init -q

gix-index/tests/fixtures/make_index/v2.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22
set -eu -o pipefail
33

44
export GIT_INDEX_VERSION=2

gix-index/tests/fixtures/make_index/v2_all_file_kinds.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22
set -eu -o pipefail
33

44
export GIT_INDEX_VERSION=2;

gix-index/tests/fixtures/make_index/v2_deeper_tree.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22
set -eu -o pipefail
33

44
export GIT_INDEX_VERSION=2;

gix-index/tests/fixtures/make_index/v2_icase_name_clashes.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22
set -eu -o pipefail
33

44
git init -q

gix-index/tests/fixtures/make_index/v2_more_files.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22
set -eu -o pipefail
33

44
export GIT_INDEX_VERSION=2;

gix-index/tests/fixtures/make_index/v2_sparse_index_no_dirs.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22
set -eu -o pipefail
33

44
git init -q

gix-index/tests/fixtures/make_index/v2_split_index.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22
set -eu -o pipefail
33

44
export GIT_INDEX_VERSION=2

gix-index/tests/fixtures/make_index/v2_split_index_recursive.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22
set -eu -o pipefail
33

44
export GIT_INDEX_VERSION=2

gix-index/tests/fixtures/make_index/v2_split_vs_regular_index.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22

33
# Creates a 2 identical repositories, one using a split index, the other
44
# using a regular index

gix-index/tests/fixtures/make_index/v3_added_files.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22
set -eu -o pipefail
33

44
git init -q

gix-index/tests/fixtures/make_index/v3_skip_worktree.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22
set -eu -o pipefail
33

44
git init -q

gix-index/tests/fixtures/make_index/v3_sparse_index.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22
set -eu -o pipefail
33

44
git init -q

gix-index/tests/fixtures/make_index/v3_sparse_index_non_cone.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22
set -eu -o pipefail
33

44
git init -q

gix-index/tests/fixtures/make_index/v4_more_files_IEOT.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22
set -eu -o pipefail
33

44
export GIT_INDEX_VERSION=4

gix-index/tests/fixtures/make_traverse_literal_separators.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22
set -eu -o pipefail
33

44
# Makes a repo carrying a literally named file, which may even contain "/".
@@ -41,4 +41,4 @@ make_repo traverse_dotgit_backslashes '.git\hooks\pre-commit' 100755 <<'EOF'
4141
#!/bin/sh
4242
printf 'Vulnerable!\n'
4343
date >vulnerable
44-
EOF
44+
EOF
Binary file not shown.

gix-negotiate/tests/fixtures/make_repos.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22
set -eu -o pipefail
33

44
function tick () {
Binary file not shown.

gix-object/tests/fixtures/make_trees.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22
set -eu -o pipefail
33

44
function baseline() {
Binary file not shown.
Binary file not shown.

gix-odb/tests/fixtures/make_alternates_odb.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22
set -eu -o pipefail
33

44
git init -q

gix-odb/tests/fixtures/make_replaced_history.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22
set -eu -o pipefail
33

44
git init -q

gix-odb/tests/fixtures/make_repo_multi_index.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22
set -eu -o pipefail
33

44
omit_multi_index=${1:-no}

gix-odb/tests/fixtures/repo_with_loose_objects.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22
set -eu -o pipefail
33

44
git init -q
Binary file not shown.
Binary file not shown.

gix-pack/tests/fixtures/make_pack_gen_repo.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22
set -eu -o pipefail
33

44
git init -q

gix-pack/tests/fixtures/make_pack_gen_repo_multi_index.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22
set -eu -o pipefail
33

44
git init -q
Binary file not shown.
Binary file not shown.
Binary file not shown.

gix-pathspec/tests/fixtures/match_baseline_dirs.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22
set -eu -o pipefail
33

44
git init;

gix-pathspec/tests/fixtures/match_baseline_files.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22
set -eu -o pipefail
33

44
git init;

gix-pathspec/tests/fixtures/parse_baseline.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22
set -eu -o pipefail
33

44
git init;
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

gix-ref/tests/fixtures/make_namespaced_packed_ref_repository.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22
set -eu -o pipefail
33

44
git init -q

gix-ref/tests/fixtures/make_packed_ref_repository.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22
set -eu -o pipefail
33

44
git init -q

0 commit comments

Comments
 (0)