Skip to content

Commit e5b2b72

Browse files
committed
Make bash script shebangs more portable
1 parent 5d1b0af commit e5b2b72

File tree

133 files changed

+133
-133
lines changed

Some content is hidden

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

133 files changed

+133
-133
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

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

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;

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.

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}

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

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

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-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 () {

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() {

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

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

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;

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

gix-ref/tests/fixtures/make_packed_ref_repository_for_overlay.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_refs_for_lookup_rules.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)