From 13a2e760de010337688063c862876552668c1b02 Mon Sep 17 00:00:00 2001 From: Eliah Kagan Date: Mon, 6 May 2024 12:22:55 +0000 Subject: [PATCH] Make bash script shebangs more portable --- etc/check-package-size.sh | 2 +- etc/copy-packetline.sh | 2 +- etc/corpus/clone-repos.sh | 2 +- gix-archive/tests/fixtures/basic.sh | 2 +- gix-attributes/tests/fixtures/make_attributes_baseline.sh | 2 +- gix-command/tests/fixtures/win_path_lookup.sh | 2 +- gix-commitgraph/tests/fixtures/generation_number_overflow.sh | 2 +- gix-commitgraph/tests/fixtures/octopus_merges.sh | 2 +- gix-commitgraph/tests/fixtures/single_commit.sh | 2 +- gix-commitgraph/tests/fixtures/single_commit_huge_dates.sh | 2 +- gix-commitgraph/tests/fixtures/single_parent.sh | 2 +- gix-commitgraph/tests/fixtures/split_chain.sh | 2 +- gix-commitgraph/tests/fixtures/two_parents.sh | 2 +- gix-config/tests/fixtures/config_with_worktree_extension.sh | 2 +- gix-config/tests/fixtures/make_config_repo.sh | 2 +- gix-credentials/tests/fixtures/all-but-credentials.sh | 2 +- gix-credentials/tests/fixtures/custom-helper.sh | 2 +- gix-credentials/tests/fixtures/fail.sh | 2 +- gix-credentials/tests/fixtures/last-pass.sh | 2 +- gix-credentials/tests/fixtures/password.sh | 2 +- gix-credentials/tests/fixtures/reflect.sh | 2 +- gix-credentials/tests/fixtures/url.sh | 2 +- gix-credentials/tests/fixtures/username.sh | 2 +- gix-date/tests/fixtures/generate_git_date_baseline.sh | 2 +- gix-diff/tests/fixtures/make_blob_repo.sh | 2 +- gix-diff/tests/fixtures/make_diff_repo.sh | 2 +- gix-dir/tests/fixtures/many-symlinks.sh | 2 +- gix-dir/tests/fixtures/many.sh | 2 +- gix-discover/tests/fixtures/make_basic_repo.sh | 2 +- gix-discover/tests/fixtures/make_exfat_repo_darwin.sh | 2 +- gix-discover/tests/fixtures/make_submodules.sh | 2 +- gix-filter/tests/fixtures/baseline.sh | 2 +- gix-filter/tests/fixtures/pipeline_repos.sh | 2 +- gix-fsck/tests/fixtures/make_test_repos.sh | 2 +- gix-glob/tests/fixtures/make_baseline.sh | 2 +- .../tests/fixtures/make_global_and_external_and_dir_ignores.sh | 2 +- gix-index/tests/fixtures/file_metadata.sh | 2 +- gix-index/tests/fixtures/make_index/V2_empty.sh | 2 +- gix-index/tests/fixtures/make_index/v2.sh | 2 +- gix-index/tests/fixtures/make_index/v2_all_file_kinds.sh | 2 +- gix-index/tests/fixtures/make_index/v2_deeper_tree.sh | 2 +- gix-index/tests/fixtures/make_index/v2_icase_name_clashes.sh | 2 +- gix-index/tests/fixtures/make_index/v2_more_files.sh | 2 +- gix-index/tests/fixtures/make_index/v2_sparse_index_no_dirs.sh | 2 +- gix-index/tests/fixtures/make_index/v2_split_index.sh | 2 +- gix-index/tests/fixtures/make_index/v2_split_index_recursive.sh | 2 +- .../tests/fixtures/make_index/v2_split_vs_regular_index.sh | 2 +- gix-index/tests/fixtures/make_index/v3_added_files.sh | 2 +- gix-index/tests/fixtures/make_index/v3_skip_worktree.sh | 2 +- gix-index/tests/fixtures/make_index/v3_sparse_index.sh | 2 +- gix-index/tests/fixtures/make_index/v3_sparse_index_non_cone.sh | 2 +- gix-index/tests/fixtures/make_index/v4_more_files_IEOT.sh | 2 +- gix-negotiate/tests/fixtures/make_repos.sh | 2 +- gix-object/tests/fixtures/make_trees.sh | 2 +- gix-odb/tests/fixtures/make_alternates_odb.sh | 2 +- gix-odb/tests/fixtures/make_replaced_history.sh | 2 +- gix-odb/tests/fixtures/make_repo_multi_index.sh | 2 +- gix-odb/tests/fixtures/repo_with_loose_objects.sh | 2 +- gix-pack/tests/fixtures/make_pack_gen_repo.sh | 2 +- gix-pack/tests/fixtures/make_pack_gen_repo_multi_index.sh | 2 +- gix-pathspec/tests/fixtures/match_baseline_dirs.sh | 2 +- gix-pathspec/tests/fixtures/match_baseline_files.sh | 2 +- gix-pathspec/tests/fixtures/parse_baseline.sh | 2 +- gix-ref/tests/fixtures/make_namespaced_packed_ref_repository.sh | 2 +- gix-ref/tests/fixtures/make_packed_ref_repository.sh | 2 +- .../tests/fixtures/make_packed_ref_repository_for_overlay.sh | 2 +- gix-ref/tests/fixtures/make_packed_refs_for_lookup_rules.sh | 2 +- gix-ref/tests/fixtures/make_ref_repository.sh | 2 +- gix-ref/tests/fixtures/make_repo_for_reflog.sh | 2 +- .../tests/fixtures/make_repository_with_lots_of_packed_refs.sh | 2 +- gix-ref/tests/fixtures/make_worktree_repo.sh | 2 +- gix-refspec/tests/fixtures/match_baseline.sh | 2 +- gix-refspec/tests/fixtures/parse_baseline.sh | 2 +- gix-revision/tests/fixtures/make_repo_with_branches.sh | 2 +- gix-status/tests/fixtures/conflicts.sh | 2 +- gix-status/tests/fixtures/racy_git.sh | 2 +- gix-status/tests/fixtures/status_changed.sh | 2 +- gix-status/tests/fixtures/status_conflict.sh | 2 +- gix-status/tests/fixtures/status_intent_to_add.sh | 2 +- gix-status/tests/fixtures/status_many.sh | 2 +- gix-status/tests/fixtures/status_removed.sh | 2 +- gix-status/tests/fixtures/status_submodule.sh | 2 +- gix-status/tests/fixtures/status_unchanged.sh | 2 +- gix-status/tests/fixtures/symlink_stack.sh | 2 +- gix-submodule/tests/fixtures/basic.sh | 2 +- gix-traverse/tests/fixtures/make_repo_for_topo.sh | 2 +- gix-traverse/tests/fixtures/make_repos.sh | 2 +- .../tests/fixtures/make_traversal_repo_for_commits_same_date.sh | 2 +- .../fixtures/make_traversal_repo_for_commits_with_dates.sh | 2 +- gix-traverse/tests/fixtures/make_traversal_repo_for_trees.sh | 2 +- gix-url/tests/fixtures/make_baseline.sh | 2 +- gix-worktree-state/tests/fixtures/make_dangerous_symlink.sh | 2 +- gix-worktree-state/tests/fixtures/make_ignorecase_collisions.sh | 2 +- gix-worktree-state/tests/fixtures/make_mixed.sh | 2 +- .../tests/fixtures/make_mixed_without_submodules.sh | 2 +- .../fixtures/make_mixed_without_submodules_and_symlinks.sh | 2 +- gix-worktree-stream/tests/fixtures/basic.sh | 2 +- gix-worktree/tests/fixtures/make_attributes_baseline.sh | 2 +- gix-worktree/tests/fixtures/make_ignore_and_attributes_setup.sh | 2 +- gix-worktree/tests/fixtures/make_special_exclude_case.sh | 2 +- gix-worktree/tests/fixtures/symlink_stack.sh | 2 +- gix/tests/fixtures/make_am_repo.sh | 2 +- gix/tests/fixtures/make_basic_repo.sh | 2 +- gix/tests/fixtures/make_bisect_repo.sh | 2 +- gix/tests/fixtures/make_cherry_pick_repo.sh | 2 +- gix/tests/fixtures/make_cherry_pick_sequence_repo.sh | 2 +- gix/tests/fixtures/make_commit_describe_multiple_tags.sh | 2 +- gix/tests/fixtures/make_complex_shallow_repo.sh | 2 +- gix/tests/fixtures/make_config_repo.sh | 2 +- gix/tests/fixtures/make_config_repos.sh | 2 +- gix/tests/fixtures/make_core_worktree_repo.sh | 2 +- gix/tests/fixtures/make_diff_repo.sh | 2 +- gix/tests/fixtures/make_empty_repo.sh | 2 +- gix/tests/fixtures/make_fetch_repos.sh | 2 +- gix/tests/fixtures/make_head_repos.sh | 2 +- gix/tests/fixtures/make_merge_repo.sh | 2 +- gix/tests/fixtures/make_packed_and_loose.sh | 2 +- gix/tests/fixtures/make_pre_epoch_repo.sh | 2 +- gix/tests/fixtures/make_rebase_i_repo.sh | 2 +- gix/tests/fixtures/make_references_repo.sh | 2 +- gix/tests/fixtures/make_remote_config_repos.sh | 2 +- gix/tests/fixtures/make_remote_repos.sh | 2 +- gix/tests/fixtures/make_repo_with_fork_and_dates.sh | 2 +- gix/tests/fixtures/make_rev_spec_parse_repos.sh | 2 +- gix/tests/fixtures/make_revert_repo.sh | 2 +- gix/tests/fixtures/make_revert_sequence_repo.sh | 2 +- gix/tests/fixtures/make_shallow_repo.sh | 2 +- gix/tests/fixtures/make_signatures_repo.sh | 2 +- gix/tests/fixtures/make_status_repos.sh | 2 +- gix/tests/fixtures/make_submodules.sh | 2 +- gix/tests/fixtures/make_worktree_repo.sh | 2 +- gix/tests/fixtures/make_worktree_repo_with_configs.sh | 2 +- tests/utilities.sh | 2 +- 133 files changed, 133 insertions(+), 133 deletions(-) diff --git a/etc/check-package-size.sh b/etc/check-package-size.sh index 7eee9d606ba..c23bad23336 100755 --- a/etc/check-package-size.sh +++ b/etc/check-package-size.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -eu -o pipefail diff --git a/etc/copy-packetline.sh b/etc/copy-packetline.sh index 9520b3b9011..9ed5a0eea89 100755 --- a/etc/copy-packetline.sh +++ b/etc/copy-packetline.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -euC -o pipefail diff --git a/etc/corpus/clone-repos.sh b/etc/corpus/clone-repos.sh index 0581544b16f..b302fcbd4e8 100755 --- a/etc/corpus/clone-repos.sh +++ b/etc/corpus/clone-repos.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Check if there is input on stdin if [ -t 0 ]; then diff --git a/gix-archive/tests/fixtures/basic.sh b/gix-archive/tests/fixtures/basic.sh index ea026738d0f..5cd4c2e859c 100755 --- a/gix-archive/tests/fixtures/basic.sh +++ b/gix-archive/tests/fixtures/basic.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -eu -o pipefail git init diff --git a/gix-attributes/tests/fixtures/make_attributes_baseline.sh b/gix-attributes/tests/fixtures/make_attributes_baseline.sh index ce48ebe1abe..47f109e971d 100755 --- a/gix-attributes/tests/fixtures/make_attributes_baseline.sh +++ b/gix-attributes/tests/fixtures/make_attributes_baseline.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -eu -o pipefail mkdir basics; diff --git a/gix-command/tests/fixtures/win_path_lookup.sh b/gix-command/tests/fixtures/win_path_lookup.sh index 91770e15086..0a588efb8a5 100755 --- a/gix-command/tests/fixtures/win_path_lookup.sh +++ b/gix-command/tests/fixtures/win_path_lookup.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -eu -o pipefail mkdir a b c diff --git a/gix-commitgraph/tests/fixtures/generation_number_overflow.sh b/gix-commitgraph/tests/fixtures/generation_number_overflow.sh index 2592c92d4c9..1bbe2dfdf31 100755 --- a/gix-commitgraph/tests/fixtures/generation_number_overflow.sh +++ b/gix-commitgraph/tests/fixtures/generation_number_overflow.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -eu -o pipefail function tick () { diff --git a/gix-commitgraph/tests/fixtures/octopus_merges.sh b/gix-commitgraph/tests/fixtures/octopus_merges.sh index 812dfbc7e92..89106361158 100755 --- a/gix-commitgraph/tests/fixtures/octopus_merges.sh +++ b/gix-commitgraph/tests/fixtures/octopus_merges.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -eu -o pipefail git init -q diff --git a/gix-commitgraph/tests/fixtures/single_commit.sh b/gix-commitgraph/tests/fixtures/single_commit.sh index 0f450431098..227453b2cd0 100755 --- a/gix-commitgraph/tests/fixtures/single_commit.sh +++ b/gix-commitgraph/tests/fixtures/single_commit.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -eu -o pipefail # The goal with this repo is to have the smallest commit-graph file possible, in the hopes that an diff --git a/gix-commitgraph/tests/fixtures/single_commit_huge_dates.sh b/gix-commitgraph/tests/fixtures/single_commit_huge_dates.sh index 19ffba26770..28fe6f47f4a 100755 --- a/gix-commitgraph/tests/fixtures/single_commit_huge_dates.sh +++ b/gix-commitgraph/tests/fixtures/single_commit_huge_dates.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -eu -o pipefail function setup_repo() { diff --git a/gix-commitgraph/tests/fixtures/single_parent.sh b/gix-commitgraph/tests/fixtures/single_parent.sh index 67cf24012f7..5395bb6376a 100755 --- a/gix-commitgraph/tests/fixtures/single_parent.sh +++ b/gix-commitgraph/tests/fixtures/single_parent.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -eu -o pipefail git init -q diff --git a/gix-commitgraph/tests/fixtures/split_chain.sh b/gix-commitgraph/tests/fixtures/split_chain.sh index 284f4fc7eb9..4316d5045f0 100755 --- a/gix-commitgraph/tests/fixtures/split_chain.sh +++ b/gix-commitgraph/tests/fixtures/split_chain.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -eu -o pipefail git init -q diff --git a/gix-commitgraph/tests/fixtures/two_parents.sh b/gix-commitgraph/tests/fixtures/two_parents.sh index ba4a8174365..aa2fd7dbe92 100755 --- a/gix-commitgraph/tests/fixtures/two_parents.sh +++ b/gix-commitgraph/tests/fixtures/two_parents.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -eu -o pipefail git init -q diff --git a/gix-config/tests/fixtures/config_with_worktree_extension.sh b/gix-config/tests/fixtures/config_with_worktree_extension.sh index a3a5fe076de..31e6760a55e 100755 --- a/gix-config/tests/fixtures/config_with_worktree_extension.sh +++ b/gix-config/tests/fixtures/config_with_worktree_extension.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -eu -o pipefail git init -q main-worktree diff --git a/gix-config/tests/fixtures/make_config_repo.sh b/gix-config/tests/fixtures/make_config_repo.sh index d4d3deb49d9..1d9b877f541 100755 --- a/gix-config/tests/fixtures/make_config_repo.sh +++ b/gix-config/tests/fixtures/make_config_repo.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -eu -o pipefail git init -q diff --git a/gix-credentials/tests/fixtures/all-but-credentials.sh b/gix-credentials/tests/fixtures/all-but-credentials.sh index 0610a71b025..934d3a0f0a7 100755 --- a/gix-credentials/tests/fixtures/all-but-credentials.sh +++ b/gix-credentials/tests/fixtures/all-but-credentials.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash echo protocol=ftp echo host=example.com:8080 diff --git a/gix-credentials/tests/fixtures/custom-helper.sh b/gix-credentials/tests/fixtures/custom-helper.sh index 55d6b2f944c..340a760019b 100755 --- a/gix-credentials/tests/fixtures/custom-helper.sh +++ b/gix-credentials/tests/fixtures/custom-helper.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -eu test "$1" = get && \ diff --git a/gix-credentials/tests/fixtures/fail.sh b/gix-credentials/tests/fixtures/fail.sh index 84b6391bcf2..c738efcae1a 100755 --- a/gix-credentials/tests/fixtures/fail.sh +++ b/gix-credentials/tests/fixtures/fail.sh @@ -1,3 +1,3 @@ -#!/bin/bash +#!/usr/bin/env bash exit 42 diff --git a/gix-credentials/tests/fixtures/last-pass.sh b/gix-credentials/tests/fixtures/last-pass.sh index 2f03f898667..fd533e5c984 100755 --- a/gix-credentials/tests/fixtures/last-pass.sh +++ b/gix-credentials/tests/fixtures/last-pass.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -eu echo username=user diff --git a/gix-credentials/tests/fixtures/password.sh b/gix-credentials/tests/fixtures/password.sh index f75c4bc029a..c39db67618b 100755 --- a/gix-credentials/tests/fixtures/password.sh +++ b/gix-credentials/tests/fixtures/password.sh @@ -1,3 +1,3 @@ -#!/bin/bash +#!/usr/bin/env bash echo password=pass diff --git a/gix-credentials/tests/fixtures/reflect.sh b/gix-credentials/tests/fixtures/reflect.sh index e4079b793fd..e74fb85b88f 100755 --- a/gix-credentials/tests/fixtures/reflect.sh +++ b/gix-credentials/tests/fixtures/reflect.sh @@ -1,3 +1,3 @@ -#!/bin/bash +#!/usr/bin/env bash cat diff --git a/gix-credentials/tests/fixtures/url.sh b/gix-credentials/tests/fixtures/url.sh index 1eb585859e2..09900e4dbc9 100755 --- a/gix-credentials/tests/fixtures/url.sh +++ b/gix-credentials/tests/fixtures/url.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash echo protocol=ftp echo host=github.com diff --git a/gix-credentials/tests/fixtures/username.sh b/gix-credentials/tests/fixtures/username.sh index f2bab6c287e..50877450981 100755 --- a/gix-credentials/tests/fixtures/username.sh +++ b/gix-credentials/tests/fixtures/username.sh @@ -1,3 +1,3 @@ -#!/bin/bash +#!/usr/bin/env bash echo username=user diff --git a/gix-date/tests/fixtures/generate_git_date_baseline.sh b/gix-date/tests/fixtures/generate_git_date_baseline.sh index e5e34d99341..45d5217b6a9 100755 --- a/gix-date/tests/fixtures/generate_git_date_baseline.sh +++ b/gix-date/tests/fixtures/generate_git_date_baseline.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -eu -o pipefail git init; diff --git a/gix-diff/tests/fixtures/make_blob_repo.sh b/gix-diff/tests/fixtures/make_blob_repo.sh index ac0079a68af..666a274efd8 100755 --- a/gix-diff/tests/fixtures/make_blob_repo.sh +++ b/gix-diff/tests/fixtures/make_blob_repo.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -eu -o pipefail git init -q diff --git a/gix-diff/tests/fixtures/make_diff_repo.sh b/gix-diff/tests/fixtures/make_diff_repo.sh index 7ae9ccab22a..64955c3bfe1 100755 --- a/gix-diff/tests/fixtures/make_diff_repo.sh +++ b/gix-diff/tests/fixtures/make_diff_repo.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -eu -o pipefail diff --git a/gix-dir/tests/fixtures/many-symlinks.sh b/gix-dir/tests/fixtures/many-symlinks.sh index 89cda9a0bcd..fdebe1021a7 100755 --- a/gix-dir/tests/fixtures/many-symlinks.sh +++ b/gix-dir/tests/fixtures/many-symlinks.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -eu -o pipefail # Note that symlink creation fails on Windows for some reason, diff --git a/gix-dir/tests/fixtures/many.sh b/gix-dir/tests/fixtures/many.sh index fcc6b980b60..96b87022798 100755 --- a/gix-dir/tests/fixtures/many.sh +++ b/gix-dir/tests/fixtures/many.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -eu -o pipefail # Nothing here may use symlinks so these fixtures can be used on windows as well. diff --git a/gix-discover/tests/fixtures/make_basic_repo.sh b/gix-discover/tests/fixtures/make_basic_repo.sh index bdc1be08e30..b0c79baf404 100755 --- a/gix-discover/tests/fixtures/make_basic_repo.sh +++ b/gix-discover/tests/fixtures/make_basic_repo.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -eu -o pipefail git init -q diff --git a/gix-discover/tests/fixtures/make_exfat_repo_darwin.sh b/gix-discover/tests/fixtures/make_exfat_repo_darwin.sh index 88709300044..322aad35197 100755 --- a/gix-discover/tests/fixtures/make_exfat_repo_darwin.sh +++ b/gix-discover/tests/fixtures/make_exfat_repo_darwin.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -eu -o pipefail [[ $(uname) == Darwin ]] || exit 1 diff --git a/gix-discover/tests/fixtures/make_submodules.sh b/gix-discover/tests/fixtures/make_submodules.sh index 24e28a5ec3c..9994d6d50e1 100755 --- a/gix-discover/tests/fixtures/make_submodules.sh +++ b/gix-discover/tests/fixtures/make_submodules.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -eu -o pipefail git init -q module1 diff --git a/gix-filter/tests/fixtures/baseline.sh b/gix-filter/tests/fixtures/baseline.sh index 33f071d786b..c27d559bb28 100755 --- a/gix-filter/tests/fixtures/baseline.sh +++ b/gix-filter/tests/fixtures/baseline.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -eu -o pipefail driver=${1:?First argument is the driver program supporting both process mode and clean/smudge} diff --git a/gix-filter/tests/fixtures/pipeline_repos.sh b/gix-filter/tests/fixtures/pipeline_repos.sh index e2f64f99e62..c6360c7a090 100755 --- a/gix-filter/tests/fixtures/pipeline_repos.sh +++ b/gix-filter/tests/fixtures/pipeline_repos.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -eu -o pipefail (mkdir all-filters && cd all-filters diff --git a/gix-fsck/tests/fixtures/make_test_repos.sh b/gix-fsck/tests/fixtures/make_test_repos.sh index 93cb1443718..7b37084d01b 100755 --- a/gix-fsck/tests/fixtures/make_test_repos.sh +++ b/gix-fsck/tests/fixtures/make_test_repos.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -x set -euo pipefail diff --git a/gix-glob/tests/fixtures/make_baseline.sh b/gix-glob/tests/fixtures/make_baseline.sh index 5787ff64ce1..02727edbf60 100755 --- a/gix-glob/tests/fixtures/make_baseline.sh +++ b/gix-glob/tests/fixtures/make_baseline.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -eu -o pipefail git init -q diff --git a/gix-ignore/tests/fixtures/make_global_and_external_and_dir_ignores.sh b/gix-ignore/tests/fixtures/make_global_and_external_and_dir_ignores.sh index f4bd0997ab4..9959668e671 100755 --- a/gix-ignore/tests/fixtures/make_global_and_external_and_dir_ignores.sh +++ b/gix-ignore/tests/fixtures/make_global_and_external_and_dir_ignores.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -eu -o pipefail cat <user.exclude diff --git a/gix-index/tests/fixtures/file_metadata.sh b/gix-index/tests/fixtures/file_metadata.sh index 81ca3b8a3fa..94b45fcc6ae 100755 --- a/gix-index/tests/fixtures/file_metadata.sh +++ b/gix-index/tests/fixtures/file_metadata.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -eu -o pipefail # The largest-possible date for Ext4, nanos are special there, but ont usually on other filesystems diff --git a/gix-index/tests/fixtures/make_index/V2_empty.sh b/gix-index/tests/fixtures/make_index/V2_empty.sh index 1eb48b72b8c..d36f819498f 100755 --- a/gix-index/tests/fixtures/make_index/V2_empty.sh +++ b/gix-index/tests/fixtures/make_index/V2_empty.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -eu -o pipefail git init -q diff --git a/gix-index/tests/fixtures/make_index/v2.sh b/gix-index/tests/fixtures/make_index/v2.sh index a61c9527d01..5d7294eaea8 100755 --- a/gix-index/tests/fixtures/make_index/v2.sh +++ b/gix-index/tests/fixtures/make_index/v2.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -eu -o pipefail export GIT_INDEX_VERSION=2 diff --git a/gix-index/tests/fixtures/make_index/v2_all_file_kinds.sh b/gix-index/tests/fixtures/make_index/v2_all_file_kinds.sh index b7a4610da2f..966777b6076 100755 --- a/gix-index/tests/fixtures/make_index/v2_all_file_kinds.sh +++ b/gix-index/tests/fixtures/make_index/v2_all_file_kinds.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -eu -o pipefail export GIT_INDEX_VERSION=2; diff --git a/gix-index/tests/fixtures/make_index/v2_deeper_tree.sh b/gix-index/tests/fixtures/make_index/v2_deeper_tree.sh index fe2f6fa1f57..09ba2a53464 100755 --- a/gix-index/tests/fixtures/make_index/v2_deeper_tree.sh +++ b/gix-index/tests/fixtures/make_index/v2_deeper_tree.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -eu -o pipefail export GIT_INDEX_VERSION=2; diff --git a/gix-index/tests/fixtures/make_index/v2_icase_name_clashes.sh b/gix-index/tests/fixtures/make_index/v2_icase_name_clashes.sh index 78ae8c4331f..426e53c14f7 100755 --- a/gix-index/tests/fixtures/make_index/v2_icase_name_clashes.sh +++ b/gix-index/tests/fixtures/make_index/v2_icase_name_clashes.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -eu -o pipefail git init -q diff --git a/gix-index/tests/fixtures/make_index/v2_more_files.sh b/gix-index/tests/fixtures/make_index/v2_more_files.sh index d4cafddc097..2c045daa4d7 100755 --- a/gix-index/tests/fixtures/make_index/v2_more_files.sh +++ b/gix-index/tests/fixtures/make_index/v2_more_files.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -eu -o pipefail export GIT_INDEX_VERSION=2; diff --git a/gix-index/tests/fixtures/make_index/v2_sparse_index_no_dirs.sh b/gix-index/tests/fixtures/make_index/v2_sparse_index_no_dirs.sh index 890483b4276..b6bfcfed0a2 100755 --- a/gix-index/tests/fixtures/make_index/v2_sparse_index_no_dirs.sh +++ b/gix-index/tests/fixtures/make_index/v2_sparse_index_no_dirs.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -eu -o pipefail git init -q diff --git a/gix-index/tests/fixtures/make_index/v2_split_index.sh b/gix-index/tests/fixtures/make_index/v2_split_index.sh index 0b5c98e5ed8..8fe5b58ce9c 100755 --- a/gix-index/tests/fixtures/make_index/v2_split_index.sh +++ b/gix-index/tests/fixtures/make_index/v2_split_index.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -eu -o pipefail export GIT_INDEX_VERSION=2 diff --git a/gix-index/tests/fixtures/make_index/v2_split_index_recursive.sh b/gix-index/tests/fixtures/make_index/v2_split_index_recursive.sh index 0763fbe5a66..02003737a92 100755 --- a/gix-index/tests/fixtures/make_index/v2_split_index_recursive.sh +++ b/gix-index/tests/fixtures/make_index/v2_split_index_recursive.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -eu -o pipefail export GIT_INDEX_VERSION=2 diff --git a/gix-index/tests/fixtures/make_index/v2_split_vs_regular_index.sh b/gix-index/tests/fixtures/make_index/v2_split_vs_regular_index.sh index 162ff6a3ca5..fd985a3235f 100755 --- a/gix-index/tests/fixtures/make_index/v2_split_vs_regular_index.sh +++ b/gix-index/tests/fixtures/make_index/v2_split_vs_regular_index.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Creates a 2 identical repositories, one using a split index, the other # using a regular index diff --git a/gix-index/tests/fixtures/make_index/v3_added_files.sh b/gix-index/tests/fixtures/make_index/v3_added_files.sh index 8d2e5179fd2..d85db90ac4a 100755 --- a/gix-index/tests/fixtures/make_index/v3_added_files.sh +++ b/gix-index/tests/fixtures/make_index/v3_added_files.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -eu -o pipefail git init -q diff --git a/gix-index/tests/fixtures/make_index/v3_skip_worktree.sh b/gix-index/tests/fixtures/make_index/v3_skip_worktree.sh index 3ebe78e04fb..9c74bdace5b 100755 --- a/gix-index/tests/fixtures/make_index/v3_skip_worktree.sh +++ b/gix-index/tests/fixtures/make_index/v3_skip_worktree.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -eu -o pipefail git init -q diff --git a/gix-index/tests/fixtures/make_index/v3_sparse_index.sh b/gix-index/tests/fixtures/make_index/v3_sparse_index.sh index 9e88fb03178..a4410f6073b 100755 --- a/gix-index/tests/fixtures/make_index/v3_sparse_index.sh +++ b/gix-index/tests/fixtures/make_index/v3_sparse_index.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -eu -o pipefail git init -q diff --git a/gix-index/tests/fixtures/make_index/v3_sparse_index_non_cone.sh b/gix-index/tests/fixtures/make_index/v3_sparse_index_non_cone.sh index 542d9c8ba2d..371f0185a49 100755 --- a/gix-index/tests/fixtures/make_index/v3_sparse_index_non_cone.sh +++ b/gix-index/tests/fixtures/make_index/v3_sparse_index_non_cone.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -eu -o pipefail git init -q diff --git a/gix-index/tests/fixtures/make_index/v4_more_files_IEOT.sh b/gix-index/tests/fixtures/make_index/v4_more_files_IEOT.sh index 3b22aaa6692..37549122789 100755 --- a/gix-index/tests/fixtures/make_index/v4_more_files_IEOT.sh +++ b/gix-index/tests/fixtures/make_index/v4_more_files_IEOT.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -eu -o pipefail export GIT_INDEX_VERSION=4 diff --git a/gix-negotiate/tests/fixtures/make_repos.sh b/gix-negotiate/tests/fixtures/make_repos.sh index b1b96527d89..1b6997c220b 100755 --- a/gix-negotiate/tests/fixtures/make_repos.sh +++ b/gix-negotiate/tests/fixtures/make_repos.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -eu -o pipefail function tick () { diff --git a/gix-object/tests/fixtures/make_trees.sh b/gix-object/tests/fixtures/make_trees.sh index 74b282cbb30..0b7a53ccb1a 100755 --- a/gix-object/tests/fixtures/make_trees.sh +++ b/gix-object/tests/fixtures/make_trees.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -eu -o pipefail function baseline() { diff --git a/gix-odb/tests/fixtures/make_alternates_odb.sh b/gix-odb/tests/fixtures/make_alternates_odb.sh index 03b9964383f..85bafc0fd82 100755 --- a/gix-odb/tests/fixtures/make_alternates_odb.sh +++ b/gix-odb/tests/fixtures/make_alternates_odb.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -eu -o pipefail git init -q diff --git a/gix-odb/tests/fixtures/make_replaced_history.sh b/gix-odb/tests/fixtures/make_replaced_history.sh index d4d0161b4c7..416f682bf93 100755 --- a/gix-odb/tests/fixtures/make_replaced_history.sh +++ b/gix-odb/tests/fixtures/make_replaced_history.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -eu -o pipefail git init -q diff --git a/gix-odb/tests/fixtures/make_repo_multi_index.sh b/gix-odb/tests/fixtures/make_repo_multi_index.sh index 43decae9124..abbdfb9cce1 100755 --- a/gix-odb/tests/fixtures/make_repo_multi_index.sh +++ b/gix-odb/tests/fixtures/make_repo_multi_index.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -eu -o pipefail omit_multi_index=${1:-no} diff --git a/gix-odb/tests/fixtures/repo_with_loose_objects.sh b/gix-odb/tests/fixtures/repo_with_loose_objects.sh index cb055cb351d..dd6f8db5621 100755 --- a/gix-odb/tests/fixtures/repo_with_loose_objects.sh +++ b/gix-odb/tests/fixtures/repo_with_loose_objects.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -eu -o pipefail git init -q diff --git a/gix-pack/tests/fixtures/make_pack_gen_repo.sh b/gix-pack/tests/fixtures/make_pack_gen_repo.sh index 6e8c91e4bf0..1be6adc7a48 100755 --- a/gix-pack/tests/fixtures/make_pack_gen_repo.sh +++ b/gix-pack/tests/fixtures/make_pack_gen_repo.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -eu -o pipefail git init -q diff --git a/gix-pack/tests/fixtures/make_pack_gen_repo_multi_index.sh b/gix-pack/tests/fixtures/make_pack_gen_repo_multi_index.sh index 45444a7b49e..ee6a13ec6dc 100755 --- a/gix-pack/tests/fixtures/make_pack_gen_repo_multi_index.sh +++ b/gix-pack/tests/fixtures/make_pack_gen_repo_multi_index.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -eu -o pipefail git init -q diff --git a/gix-pathspec/tests/fixtures/match_baseline_dirs.sh b/gix-pathspec/tests/fixtures/match_baseline_dirs.sh index 37af54e36e7..34a4e925e82 100755 --- a/gix-pathspec/tests/fixtures/match_baseline_dirs.sh +++ b/gix-pathspec/tests/fixtures/match_baseline_dirs.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -eu -o pipefail git init; diff --git a/gix-pathspec/tests/fixtures/match_baseline_files.sh b/gix-pathspec/tests/fixtures/match_baseline_files.sh index b8422ca119c..04a59a7e082 100755 --- a/gix-pathspec/tests/fixtures/match_baseline_files.sh +++ b/gix-pathspec/tests/fixtures/match_baseline_files.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -eu -o pipefail git init; diff --git a/gix-pathspec/tests/fixtures/parse_baseline.sh b/gix-pathspec/tests/fixtures/parse_baseline.sh index 56525e9ebec..c22b7831569 100755 --- a/gix-pathspec/tests/fixtures/parse_baseline.sh +++ b/gix-pathspec/tests/fixtures/parse_baseline.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -eu -o pipefail git init; diff --git a/gix-ref/tests/fixtures/make_namespaced_packed_ref_repository.sh b/gix-ref/tests/fixtures/make_namespaced_packed_ref_repository.sh index 27477427b48..7c028c42718 100755 --- a/gix-ref/tests/fixtures/make_namespaced_packed_ref_repository.sh +++ b/gix-ref/tests/fixtures/make_namespaced_packed_ref_repository.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -eu -o pipefail git init -q diff --git a/gix-ref/tests/fixtures/make_packed_ref_repository.sh b/gix-ref/tests/fixtures/make_packed_ref_repository.sh index 3a4077b7af8..daea997523b 100755 --- a/gix-ref/tests/fixtures/make_packed_ref_repository.sh +++ b/gix-ref/tests/fixtures/make_packed_ref_repository.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -eu -o pipefail git init -q diff --git a/gix-ref/tests/fixtures/make_packed_ref_repository_for_overlay.sh b/gix-ref/tests/fixtures/make_packed_ref_repository_for_overlay.sh index 8f1365b7a07..9410375c73d 100755 --- a/gix-ref/tests/fixtures/make_packed_ref_repository_for_overlay.sh +++ b/gix-ref/tests/fixtures/make_packed_ref_repository_for_overlay.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -eu -o pipefail git init -q diff --git a/gix-ref/tests/fixtures/make_packed_refs_for_lookup_rules.sh b/gix-ref/tests/fixtures/make_packed_refs_for_lookup_rules.sh index 2262c29c8fb..9d6cbeaa137 100755 --- a/gix-ref/tests/fixtures/make_packed_refs_for_lookup_rules.sh +++ b/gix-ref/tests/fixtures/make_packed_refs_for_lookup_rules.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -eu -o pipefail git init -q diff --git a/gix-ref/tests/fixtures/make_ref_repository.sh b/gix-ref/tests/fixtures/make_ref_repository.sh index fd2b5b375f3..7288ffe59f0 100755 --- a/gix-ref/tests/fixtures/make_ref_repository.sh +++ b/gix-ref/tests/fixtures/make_ref_repository.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -eu -o pipefail git init -q diff --git a/gix-ref/tests/fixtures/make_repo_for_reflog.sh b/gix-ref/tests/fixtures/make_repo_for_reflog.sh index f81bd784764..f96c4dde8f9 100755 --- a/gix-ref/tests/fixtures/make_repo_for_reflog.sh +++ b/gix-ref/tests/fixtures/make_repo_for_reflog.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -eu -o pipefail git init -q diff --git a/gix-ref/tests/fixtures/make_repository_with_lots_of_packed_refs.sh b/gix-ref/tests/fixtures/make_repository_with_lots_of_packed_refs.sh index 63ff797ef94..bf210b84a3f 100755 --- a/gix-ref/tests/fixtures/make_repository_with_lots_of_packed_refs.sh +++ b/gix-ref/tests/fixtures/make_repository_with_lots_of_packed_refs.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -eu -o pipefail git init -q diff --git a/gix-ref/tests/fixtures/make_worktree_repo.sh b/gix-ref/tests/fixtures/make_worktree_repo.sh index 209cfad9cfd..960869ebb40 100755 --- a/gix-ref/tests/fixtures/make_worktree_repo.sh +++ b/gix-ref/tests/fixtures/make_worktree_repo.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -eu -o pipefail mkdir repo && cd repo diff --git a/gix-refspec/tests/fixtures/match_baseline.sh b/gix-refspec/tests/fixtures/match_baseline.sh index b6e2eee8a56..74980db9dd0 100755 --- a/gix-refspec/tests/fixtures/match_baseline.sh +++ b/gix-refspec/tests/fixtures/match_baseline.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -eu -o pipefail git init; diff --git a/gix-refspec/tests/fixtures/parse_baseline.sh b/gix-refspec/tests/fixtures/parse_baseline.sh index cf87060ab6c..93475e10cc5 100755 --- a/gix-refspec/tests/fixtures/parse_baseline.sh +++ b/gix-refspec/tests/fixtures/parse_baseline.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -eu -o pipefail git init; diff --git a/gix-revision/tests/fixtures/make_repo_with_branches.sh b/gix-revision/tests/fixtures/make_repo_with_branches.sh index f53f9bf7db6..0bf4c54f3a3 100755 --- a/gix-revision/tests/fixtures/make_repo_with_branches.sh +++ b/gix-revision/tests/fixtures/make_repo_with_branches.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -eu -o pipefail git init -q diff --git a/gix-status/tests/fixtures/conflicts.sh b/gix-status/tests/fixtures/conflicts.sh index 682a214cf99..6b5c7e5fe81 100755 --- a/gix-status/tests/fixtures/conflicts.sh +++ b/gix-status/tests/fixtures/conflicts.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -eu -o pipefail (git init both-deleted && cd both-deleted diff --git a/gix-status/tests/fixtures/racy_git.sh b/gix-status/tests/fixtures/racy_git.sh index 7fdef456f87..2b027872835 100755 --- a/gix-status/tests/fixtures/racy_git.sh +++ b/gix-status/tests/fixtures/racy_git.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -eu -o pipefail git init -q diff --git a/gix-status/tests/fixtures/status_changed.sh b/gix-status/tests/fixtures/status_changed.sh index 033c6a8336f..06ff09ebf3f 100755 --- a/gix-status/tests/fixtures/status_changed.sh +++ b/gix-status/tests/fixtures/status_changed.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -eu -o pipefail git init -q diff --git a/gix-status/tests/fixtures/status_conflict.sh b/gix-status/tests/fixtures/status_conflict.sh index d78e81bfe7e..9573f330f88 100755 --- a/gix-status/tests/fixtures/status_conflict.sh +++ b/gix-status/tests/fixtures/status_conflict.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -eu -o pipefail git init -q diff --git a/gix-status/tests/fixtures/status_intent_to_add.sh b/gix-status/tests/fixtures/status_intent_to_add.sh index 7d1601385c0..bfde908cd6e 100755 --- a/gix-status/tests/fixtures/status_intent_to_add.sh +++ b/gix-status/tests/fixtures/status_intent_to_add.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -eu -o pipefail git init -q diff --git a/gix-status/tests/fixtures/status_many.sh b/gix-status/tests/fixtures/status_many.sh index 2315ddc2a96..a3d05017d3e 100755 --- a/gix-status/tests/fixtures/status_many.sh +++ b/gix-status/tests/fixtures/status_many.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -eu -o pipefail git init -q changed-and-untracked diff --git a/gix-status/tests/fixtures/status_removed.sh b/gix-status/tests/fixtures/status_removed.sh index 30cdfb94993..d6a06ec651b 100755 --- a/gix-status/tests/fixtures/status_removed.sh +++ b/gix-status/tests/fixtures/status_removed.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -eu -o pipefail git init -q diff --git a/gix-status/tests/fixtures/status_submodule.sh b/gix-status/tests/fixtures/status_submodule.sh index a8b6634c5e0..7e73686ace6 100755 --- a/gix-status/tests/fixtures/status_submodule.sh +++ b/gix-status/tests/fixtures/status_submodule.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -eu -o pipefail git init -q module1 diff --git a/gix-status/tests/fixtures/status_unchanged.sh b/gix-status/tests/fixtures/status_unchanged.sh index 67684549509..14caa054cd9 100755 --- a/gix-status/tests/fixtures/status_unchanged.sh +++ b/gix-status/tests/fixtures/status_unchanged.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -eu -o pipefail git init -q diff --git a/gix-status/tests/fixtures/symlink_stack.sh b/gix-status/tests/fixtures/symlink_stack.sh index 479460c00a9..751a8ee45b6 100755 --- a/gix-status/tests/fixtures/symlink_stack.sh +++ b/gix-status/tests/fixtures/symlink_stack.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -eu -o pipefail mkdir base; diff --git a/gix-submodule/tests/fixtures/basic.sh b/gix-submodule/tests/fixtures/basic.sh index 203e6afdeea..b61169e35f5 100755 --- a/gix-submodule/tests/fixtures/basic.sh +++ b/gix-submodule/tests/fixtures/basic.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -eu -o pipefail set -x diff --git a/gix-traverse/tests/fixtures/make_repo_for_topo.sh b/gix-traverse/tests/fixtures/make_repo_for_topo.sh index 6a04778bb75..da05d56e485 100755 --- a/gix-traverse/tests/fixtures/make_repo_for_topo.sh +++ b/gix-traverse/tests/fixtures/make_repo_for_topo.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -eu -o pipefail function tick () { diff --git a/gix-traverse/tests/fixtures/make_repos.sh b/gix-traverse/tests/fixtures/make_repos.sh index ec35266c2e5..c7d29e06b8a 100755 --- a/gix-traverse/tests/fixtures/make_repos.sh +++ b/gix-traverse/tests/fixtures/make_repos.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -eu -o pipefail function tick () { diff --git a/gix-traverse/tests/fixtures/make_traversal_repo_for_commits_same_date.sh b/gix-traverse/tests/fixtures/make_traversal_repo_for_commits_same_date.sh index d9e6e60e601..f952cc12a24 100755 --- a/gix-traverse/tests/fixtures/make_traversal_repo_for_commits_same_date.sh +++ b/gix-traverse/tests/fixtures/make_traversal_repo_for_commits_same_date.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -eu -o pipefail # all commits have the same date as it's set by `gix-testtools` to a fixed value. diff --git a/gix-traverse/tests/fixtures/make_traversal_repo_for_commits_with_dates.sh b/gix-traverse/tests/fixtures/make_traversal_repo_for_commits_with_dates.sh index f80a769f43d..96b6497f5a1 100755 --- a/gix-traverse/tests/fixtures/make_traversal_repo_for_commits_with_dates.sh +++ b/gix-traverse/tests/fixtures/make_traversal_repo_for_commits_with_dates.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -eu -o pipefail git init -q diff --git a/gix-traverse/tests/fixtures/make_traversal_repo_for_trees.sh b/gix-traverse/tests/fixtures/make_traversal_repo_for_trees.sh index 263ecf27f47..90b4895bb6a 100755 --- a/gix-traverse/tests/fixtures/make_traversal_repo_for_trees.sh +++ b/gix-traverse/tests/fixtures/make_traversal_repo_for_trees.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -eu -o pipefail git init -q diff --git a/gix-url/tests/fixtures/make_baseline.sh b/gix-url/tests/fixtures/make_baseline.sh index 73fe7f81349..8419578150a 100755 --- a/gix-url/tests/fixtures/make_baseline.sh +++ b/gix-url/tests/fixtures/make_baseline.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -eu -o pipefail # list of urls that should be tested for all platforms diff --git a/gix-worktree-state/tests/fixtures/make_dangerous_symlink.sh b/gix-worktree-state/tests/fixtures/make_dangerous_symlink.sh index 31437285a37..31d0e3b0177 100755 --- a/gix-worktree-state/tests/fixtures/make_dangerous_symlink.sh +++ b/gix-worktree-state/tests/fixtures/make_dangerous_symlink.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -eu -o pipefail git init -q diff --git a/gix-worktree-state/tests/fixtures/make_ignorecase_collisions.sh b/gix-worktree-state/tests/fixtures/make_ignorecase_collisions.sh index d91bd542588..7a279b41c3c 100755 --- a/gix-worktree-state/tests/fixtures/make_ignorecase_collisions.sh +++ b/gix-worktree-state/tests/fixtures/make_ignorecase_collisions.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -eu -o pipefail git init -q diff --git a/gix-worktree-state/tests/fixtures/make_mixed.sh b/gix-worktree-state/tests/fixtures/make_mixed.sh index 5e56a43a854..8e23ccbfc30 100755 --- a/gix-worktree-state/tests/fixtures/make_mixed.sh +++ b/gix-worktree-state/tests/fixtures/make_mixed.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -eu -o pipefail git init -q diff --git a/gix-worktree-state/tests/fixtures/make_mixed_without_submodules.sh b/gix-worktree-state/tests/fixtures/make_mixed_without_submodules.sh index 43fafbad944..78d36a2f2d0 100755 --- a/gix-worktree-state/tests/fixtures/make_mixed_without_submodules.sh +++ b/gix-worktree-state/tests/fixtures/make_mixed_without_submodules.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -eu -o pipefail git init -q diff --git a/gix-worktree-state/tests/fixtures/make_mixed_without_submodules_and_symlinks.sh b/gix-worktree-state/tests/fixtures/make_mixed_without_submodules_and_symlinks.sh index 0e0e95ae301..77c3aea2362 100755 --- a/gix-worktree-state/tests/fixtures/make_mixed_without_submodules_and_symlinks.sh +++ b/gix-worktree-state/tests/fixtures/make_mixed_without_submodules_and_symlinks.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -eu -o pipefail git init -q diff --git a/gix-worktree-stream/tests/fixtures/basic.sh b/gix-worktree-stream/tests/fixtures/basic.sh index 2cdc44653b2..1a29eb68a8b 100755 --- a/gix-worktree-stream/tests/fixtures/basic.sh +++ b/gix-worktree-stream/tests/fixtures/basic.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -eu -o pipefail git init diff --git a/gix-worktree/tests/fixtures/make_attributes_baseline.sh b/gix-worktree/tests/fixtures/make_attributes_baseline.sh index e2885df6e2d..d3606633fbe 100755 --- a/gix-worktree/tests/fixtures/make_attributes_baseline.sh +++ b/gix-worktree/tests/fixtures/make_attributes_baseline.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -eu -o pipefail mkdir basics; diff --git a/gix-worktree/tests/fixtures/make_ignore_and_attributes_setup.sh b/gix-worktree/tests/fixtures/make_ignore_and_attributes_setup.sh index 10be29adbcd..956606626c1 100755 --- a/gix-worktree/tests/fixtures/make_ignore_and_attributes_setup.sh +++ b/gix-worktree/tests/fixtures/make_ignore_and_attributes_setup.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -eu -o pipefail cat <user.exclude diff --git a/gix-worktree/tests/fixtures/make_special_exclude_case.sh b/gix-worktree/tests/fixtures/make_special_exclude_case.sh index 17a279eda9d..a4bf40719ba 100755 --- a/gix-worktree/tests/fixtures/make_special_exclude_case.sh +++ b/gix-worktree/tests/fixtures/make_special_exclude_case.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -eu -o pipefail git init -q diff --git a/gix-worktree/tests/fixtures/symlink_stack.sh b/gix-worktree/tests/fixtures/symlink_stack.sh index 0bddba20d8d..5bbd7608599 100755 --- a/gix-worktree/tests/fixtures/symlink_stack.sh +++ b/gix-worktree/tests/fixtures/symlink_stack.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -eu -o pipefail git init base; diff --git a/gix/tests/fixtures/make_am_repo.sh b/gix/tests/fixtures/make_am_repo.sh index 23fc5a6ae94..3a8b4814582 100755 --- a/gix/tests/fixtures/make_am_repo.sh +++ b/gix/tests/fixtures/make_am_repo.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -eu -o pipefail git init -q diff --git a/gix/tests/fixtures/make_basic_repo.sh b/gix/tests/fixtures/make_basic_repo.sh index ac50aea64cb..07639871644 100755 --- a/gix/tests/fixtures/make_basic_repo.sh +++ b/gix/tests/fixtures/make_basic_repo.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -eu -o pipefail git init -q diff --git a/gix/tests/fixtures/make_bisect_repo.sh b/gix/tests/fixtures/make_bisect_repo.sh index ce67e12aac4..ab43452a7d2 100755 --- a/gix/tests/fixtures/make_bisect_repo.sh +++ b/gix/tests/fixtures/make_bisect_repo.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -eu -o pipefail git init -q diff --git a/gix/tests/fixtures/make_cherry_pick_repo.sh b/gix/tests/fixtures/make_cherry_pick_repo.sh index 5f8575bb0cb..32321fef066 100755 --- a/gix/tests/fixtures/make_cherry_pick_repo.sh +++ b/gix/tests/fixtures/make_cherry_pick_repo.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -eu -o pipefail git init -q diff --git a/gix/tests/fixtures/make_cherry_pick_sequence_repo.sh b/gix/tests/fixtures/make_cherry_pick_sequence_repo.sh index d7295a3cd73..77dcd06ed67 100755 --- a/gix/tests/fixtures/make_cherry_pick_sequence_repo.sh +++ b/gix/tests/fixtures/make_cherry_pick_sequence_repo.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -eu -o pipefail git init -q diff --git a/gix/tests/fixtures/make_commit_describe_multiple_tags.sh b/gix/tests/fixtures/make_commit_describe_multiple_tags.sh index db27f0acb8b..2a73b4a3d67 100755 --- a/gix/tests/fixtures/make_commit_describe_multiple_tags.sh +++ b/gix/tests/fixtures/make_commit_describe_multiple_tags.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -eu -o pipefail git init -q diff --git a/gix/tests/fixtures/make_complex_shallow_repo.sh b/gix/tests/fixtures/make_complex_shallow_repo.sh index 739b1bed75f..00cab5533ad 100755 --- a/gix/tests/fixtures/make_complex_shallow_repo.sh +++ b/gix/tests/fixtures/make_complex_shallow_repo.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -eu -o pipefail remote="${1:?First argument is the complex repo to clone from}" diff --git a/gix/tests/fixtures/make_config_repo.sh b/gix/tests/fixtures/make_config_repo.sh index 76b52b80484..3cd6cb85fea 100755 --- a/gix/tests/fixtures/make_config_repo.sh +++ b/gix/tests/fixtures/make_config_repo.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -eu -o pipefail git init -q diff --git a/gix/tests/fixtures/make_config_repos.sh b/gix/tests/fixtures/make_config_repos.sh index 3219eb32a1c..be8b3f75706 100755 --- a/gix/tests/fixtures/make_config_repos.sh +++ b/gix/tests/fixtures/make_config_repos.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -eu -o pipefail git init http-config diff --git a/gix/tests/fixtures/make_core_worktree_repo.sh b/gix/tests/fixtures/make_core_worktree_repo.sh index 4e7beb74b59..775265d2ec6 100755 --- a/gix/tests/fixtures/make_core_worktree_repo.sh +++ b/gix/tests/fixtures/make_core_worktree_repo.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -eu -o pipefail mkdir worktree diff --git a/gix/tests/fixtures/make_diff_repo.sh b/gix/tests/fixtures/make_diff_repo.sh index 1175cf4ccd9..0fe6d560fb0 100755 --- a/gix/tests/fixtures/make_diff_repo.sh +++ b/gix/tests/fixtures/make_diff_repo.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -eu -o pipefail git init -q diff --git a/gix/tests/fixtures/make_empty_repo.sh b/gix/tests/fixtures/make_empty_repo.sh index 2ca9da4d632..4cb30aa5a3e 100755 --- a/gix/tests/fixtures/make_empty_repo.sh +++ b/gix/tests/fixtures/make_empty_repo.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -eu -o pipefail git -c init.defaultBranch=special init -q diff --git a/gix/tests/fixtures/make_fetch_repos.sh b/gix/tests/fixtures/make_fetch_repos.sh index 99c9acf0749..11b2d84e8e0 100755 --- a/gix/tests/fixtures/make_fetch_repos.sh +++ b/gix/tests/fixtures/make_fetch_repos.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -eu -o pipefail # IMPORTANT: keep this repo small as it's used for writes, hence will be executed for each writer! diff --git a/gix/tests/fixtures/make_head_repos.sh b/gix/tests/fixtures/make_head_repos.sh index ad2eae1f0f5..736059a28a1 100755 --- a/gix/tests/fixtures/make_head_repos.sh +++ b/gix/tests/fixtures/make_head_repos.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -eu -o pipefail (git init symbolic && cd symbolic diff --git a/gix/tests/fixtures/make_merge_repo.sh b/gix/tests/fixtures/make_merge_repo.sh index 837a513301c..d726985d2c2 100755 --- a/gix/tests/fixtures/make_merge_repo.sh +++ b/gix/tests/fixtures/make_merge_repo.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -eu -o pipefail git init -q diff --git a/gix/tests/fixtures/make_packed_and_loose.sh b/gix/tests/fixtures/make_packed_and_loose.sh index 180cd79c27a..1601359596c 100755 --- a/gix/tests/fixtures/make_packed_and_loose.sh +++ b/gix/tests/fixtures/make_packed_and_loose.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -eu -o pipefail git init -q diff --git a/gix/tests/fixtures/make_pre_epoch_repo.sh b/gix/tests/fixtures/make_pre_epoch_repo.sh index 4ce7bda6395..2dce6a14377 100755 --- a/gix/tests/fixtures/make_pre_epoch_repo.sh +++ b/gix/tests/fixtures/make_pre_epoch_repo.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -eu -o pipefail git init -q diff --git a/gix/tests/fixtures/make_rebase_i_repo.sh b/gix/tests/fixtures/make_rebase_i_repo.sh index a9ef1db1db4..b1959e7d65a 100755 --- a/gix/tests/fixtures/make_rebase_i_repo.sh +++ b/gix/tests/fixtures/make_rebase_i_repo.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -eu -o pipefail git init -q diff --git a/gix/tests/fixtures/make_references_repo.sh b/gix/tests/fixtures/make_references_repo.sh index 3a4077b7af8..daea997523b 100755 --- a/gix/tests/fixtures/make_references_repo.sh +++ b/gix/tests/fixtures/make_references_repo.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -eu -o pipefail git init -q diff --git a/gix/tests/fixtures/make_remote_config_repos.sh b/gix/tests/fixtures/make_remote_config_repos.sh index d767cf4f365..0982c21f47a 100755 --- a/gix/tests/fixtures/make_remote_config_repos.sh +++ b/gix/tests/fixtures/make_remote_config_repos.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -eu -o pipefail (mkdir fetch && cd fetch diff --git a/gix/tests/fixtures/make_remote_repos.sh b/gix/tests/fixtures/make_remote_repos.sh index e05372decbd..ab2c09111f6 100755 --- a/gix/tests/fixtures/make_remote_repos.sh +++ b/gix/tests/fixtures/make_remote_repos.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -eu -o pipefail function tick () { diff --git a/gix/tests/fixtures/make_repo_with_fork_and_dates.sh b/gix/tests/fixtures/make_repo_with_fork_and_dates.sh index 8f841dca8f2..82af9fe5e3b 100755 --- a/gix/tests/fixtures/make_repo_with_fork_and_dates.sh +++ b/gix/tests/fixtures/make_repo_with_fork_and_dates.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -eu -o pipefail git init -q diff --git a/gix/tests/fixtures/make_rev_spec_parse_repos.sh b/gix/tests/fixtures/make_rev_spec_parse_repos.sh index 414b805df89..971417aa75d 100755 --- a/gix/tests/fixtures/make_rev_spec_parse_repos.sh +++ b/gix/tests/fixtures/make_rev_spec_parse_repos.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -eu -o pipefail diff --git a/gix/tests/fixtures/make_revert_repo.sh b/gix/tests/fixtures/make_revert_repo.sh index 9e4daf3e2cd..0e1477e94e1 100755 --- a/gix/tests/fixtures/make_revert_repo.sh +++ b/gix/tests/fixtures/make_revert_repo.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -eu -o pipefail git init -q diff --git a/gix/tests/fixtures/make_revert_sequence_repo.sh b/gix/tests/fixtures/make_revert_sequence_repo.sh index 37f182deac7..2130e012352 100755 --- a/gix/tests/fixtures/make_revert_sequence_repo.sh +++ b/gix/tests/fixtures/make_revert_sequence_repo.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -eu -o pipefail git init -q diff --git a/gix/tests/fixtures/make_shallow_repo.sh b/gix/tests/fixtures/make_shallow_repo.sh index 185b2f490b6..099ad0434ab 100755 --- a/gix/tests/fixtures/make_shallow_repo.sh +++ b/gix/tests/fixtures/make_shallow_repo.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -eu -o pipefail mkdir base diff --git a/gix/tests/fixtures/make_signatures_repo.sh b/gix/tests/fixtures/make_signatures_repo.sh index e90021ddeb4..71799a6df67 100755 --- a/gix/tests/fixtures/make_signatures_repo.sh +++ b/gix/tests/fixtures/make_signatures_repo.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -eu -o pipefail git init -q diff --git a/gix/tests/fixtures/make_status_repos.sh b/gix/tests/fixtures/make_status_repos.sh index aa9aa65d74c..63c1cfb1d48 100755 --- a/gix/tests/fixtures/make_status_repos.sh +++ b/gix/tests/fixtures/make_status_repos.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -eu -o pipefail git init -q untracked-only diff --git a/gix/tests/fixtures/make_submodules.sh b/gix/tests/fixtures/make_submodules.sh index 4533033e6fb..be7fcd48887 100755 --- a/gix/tests/fixtures/make_submodules.sh +++ b/gix/tests/fixtures/make_submodules.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -eu -o pipefail git init -q module1 diff --git a/gix/tests/fixtures/make_worktree_repo.sh b/gix/tests/fixtures/make_worktree_repo.sh index d18faf78e45..b7681a351d8 100755 --- a/gix/tests/fixtures/make_worktree_repo.sh +++ b/gix/tests/fixtures/make_worktree_repo.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -eu -o pipefail bare="${1:-}" diff --git a/gix/tests/fixtures/make_worktree_repo_with_configs.sh b/gix/tests/fixtures/make_worktree_repo_with_configs.sh index f1c046d7987..5bee58c628c 100755 --- a/gix/tests/fixtures/make_worktree_repo_with_configs.sh +++ b/gix/tests/fixtures/make_worktree_repo_with_configs.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -eu -o pipefail diff --git a/tests/utilities.sh b/tests/utilities.sh index f355042b9fc..c538af332f3 100644 --- a/tests/utilities.sh +++ b/tests/utilities.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash WHITE="$(tput setaf 9 2>/dev/null || echo -n '')" YELLOW="$(tput setaf 3 2>/dev/null || echo -n '')"