Revision 58696bfcaacc50323e596112124b41242fde23de authored by Junio C Hamano on 08 July 2024, 22:52:11 UTC, committed by Junio C Hamano on 08 July 2024, 23:23:05 UTC
Under ci/ hierarchy, we run scripts under either "sh" (any Bourne
compatible POSIX shell would work) or specifically "bash" (as they
require features from bash, e.g., ${parameter/pattern/string}
expansion).  As we have the CI environment under our control, we can
expect that /bin/sh will always be fine to run the scripts that only
require a Bourne shell, but we may not know where "bash" is
installed depending on the distro used.

So let's make sure we start these scripts with either one of these:

	#!/bin/sh
	#!/usr/bin/env bash

Yes, the latter has to assume that everybody installs "env" at that
path and not as /bin/env or /usr/local/bin/env, but this currently
is the best we could do.

Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent 337b4d4
History
File Mode Size
LICENSE -rw-r--r-- 1.4 KB
basics.c -rw-r--r-- 2.1 KB
basics.h -rw-r--r-- 1.6 KB
basics_test.c -rw-r--r-- 1.9 KB
block.c -rw-r--r-- 10.1 KB
block.h -rw-r--r-- 3.6 KB
block_test.c -rw-r--r-- 2.7 KB
blocksource.c -rw-r--r-- 3.1 KB
blocksource.h -rw-r--r-- 509 bytes
constants.h -rw-r--r-- 446 bytes
dump.c -rw-r--r-- 2.2 KB
error.c -rw-r--r-- 1.0 KB
generic.c -rw-r--r-- 3.9 KB
generic.h -rw-r--r-- 833 bytes
iter.c -rw-r--r-- 4.3 KB
iter.h -rw-r--r-- 1.7 KB
merged.c -rw-r--r-- 8.4 KB
merged.h -rw-r--r-- 808 bytes
merged_test.c -rw-r--r-- 11.2 KB
pq.c -rw-r--r-- 1.9 KB
pq.h -rw-r--r-- 864 bytes
pq_test.c -rw-r--r-- 1.6 KB
publicbasics.c -rw-r--r-- 1.2 KB
reader.c -rw-r--r-- 17.9 KB
reader.h -rw-r--r-- 1.7 KB
readwrite_test.c -rw-r--r-- 20.2 KB
record.c -rw-r--r-- 31.6 KB
record.h -rw-r--r-- 4.5 KB
record_test.c -rw-r--r-- 9.9 KB
refname.c -rw-r--r-- 4.3 KB
refname.h -rw-r--r-- 585 bytes
refname_test.c -rw-r--r-- 2.2 KB
reftable-blocksource.h -rw-r--r-- 1.4 KB
reftable-error.h -rw-r--r-- 1.7 KB
reftable-generic.h -rw-r--r-- 1.4 KB
reftable-iterator.h -rw-r--r-- 1.0 KB
reftable-malloc.h -rw-r--r-- 429 bytes
reftable-merged.h -rw-r--r-- 2.4 KB
reftable-reader.h -rw-r--r-- 3.1 KB
reftable-record.h -rw-r--r-- 3.3 KB
reftable-stack.h -rw-r--r-- 4.4 KB
reftable-tests.h -rw-r--r-- 759 bytes
reftable-writer.h -rw-r--r-- 4.6 KB
stack.c -rw-r--r-- 30.5 KB
stack.h -rw-r--r-- 867 bytes
stack_test.c -rw-r--r-- 26.3 KB
system.h -rw-r--r-- 477 bytes
test_framework.c -rw-r--r-- 444 bytes
test_framework.h -rw-r--r-- 2.4 KB
tree.c -rw-r--r-- 1.2 KB
tree.h -rw-r--r-- 924 bytes
tree_test.c -rw-r--r-- 1.1 KB
writer.c -rw-r--r-- 16.2 KB
writer.h -rw-r--r-- 1.1 KB

back to top