fix(bootstrap): support macos bash for docker install
This commit is contained in:
parent
e9ab35ffb3
commit
2b6085b10e
@ -1258,7 +1258,7 @@ MSG
|
||||
|
||||
if [[ "$CONTAINER_CLI" == "podman" ]]; then
|
||||
"$CONTAINER_CLI" run --rm -it \
|
||||
"${container_run_namespace_args[@]}" \
|
||||
"${container_run_namespace_args[@]+"${container_run_namespace_args[@]}"}" \
|
||||
"${container_run_user_args[@]}" \
|
||||
"${container_extra_run_args[@]+${container_extra_run_args[@]}}" \
|
||||
-e HOME=/zeroclaw-data \
|
||||
|
||||
@ -3428,6 +3428,16 @@ class CiScriptsBehaviorTest(unittest.TestCase):
|
||||
self.assertIn("required_checks.rc", joined)
|
||||
self.assertIn("required_checks.stable", joined)
|
||||
|
||||
def test_bootstrap_uses_bash32_safe_optional_array_expansion(self) -> None:
|
||||
bootstrap = (ROOT / "scripts" / "bootstrap.sh").read_text(encoding="utf-8")
|
||||
self.assertIn(
|
||||
'"${container_run_namespace_args[@]+"${container_run_namespace_args[@]}"}"',
|
||||
bootstrap,
|
||||
)
|
||||
self.assertNotIn(
|
||||
'"${container_run_namespace_args[@]}" \\\n "${container_run_user_args[@]}"',
|
||||
bootstrap,
|
||||
)
|
||||
|
||||
if __name__ == "__main__": # pragma: no cover
|
||||
unittest.main(verbosity=2)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user