Skip to content

Commit 46ceeba

Browse files
authored
CDRIVER-5509 Use Bash and shebangs whenever able (#1680)
* Use `#!/usr/bin/env bash` in all scripts * CDRIVER-4044 Update license notice in uninstall script * Add executable permission to all shell scripts * Invoke executable scripts via shebang * CDRIVER-4044 product name consistency * Ensure generated uninstall script is always executable * Also respect shebang in EVG direct script invocations * Remove unused find-cmake.sh script
1 parent 963c682 commit 46ceeba

Some content is hidden

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

46 files changed

+997
-1025
lines changed

.evergreen/config_generator/components/earthly.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -174,9 +174,8 @@ def earthly_exec(
174174
"""Create a subprocess_exec command that runs Earthly with the given arguments"""
175175
env: dict[str, str] = {k: v for k, v in (secrets or {}).items()}
176176
return subprocess_exec(
177-
"bash",
177+
"./tools/earthly.sh",
178178
args=[
179-
"tools/earthly.sh",
180179
*(f"--secret={k}" for k in (secrets or ())),
181180
f"+{target}",
182181
*(f"--{arg}={val}" for arg, val in (args or {}).items()),

.evergreen/config_generator/components/make_docs.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ class MakeDocs(Function):
1616
include_expansions_in_env=["distro_id"],
1717
script="""\
1818
set -o errexit
19-
bash tools/poetry.sh install --with=docs
19+
./tools/poetry.sh install --with=docs
2020
# See SphinxBuild.cmake for EVG_DOCS_BUILD reasoning
21-
bash tools/poetry.sh run env EVG_DOCS_BUILD=1 bash .evergreen/scripts/build-docs.sh
21+
./tools/poetry.sh run env EVG_DOCS_BUILD=1 .evergreen/scripts/build-docs.sh
2222
""",
2323
),
2424
]

.evergreen/generated_configs/functions.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -269,9 +269,9 @@ functions:
269269
- -c
270270
- |
271271
set -o errexit
272-
bash tools/poetry.sh install --with=docs
272+
./tools/poetry.sh install --with=docs
273273
# See SphinxBuild.cmake for EVG_DOCS_BUILD reasoning
274-
bash tools/poetry.sh run env EVG_DOCS_BUILD=1 bash .evergreen/scripts/build-docs.sh
274+
./tools/poetry.sh run env EVG_DOCS_BUILD=1 .evergreen/scripts/build-docs.sh
275275
openssl-static-compile:
276276
- command: subprocess.exec
277277
type: test

0 commit comments

Comments
 (0)