Skip to content

Commit 5f84f15

Browse files
committed
fix install script test shell compatibility
Signed-off-by: Sodawyx <sodawyx@126.com>
1 parent d25a636 commit 5f84f15

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

tests/integration/test_install_script.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,10 @@ def test_install_sh_parses_latest_release_tag_on_posix_sed(tmp_path):
2222
fake_bin / "curl",
2323
f"""#!/usr/bin/env sh
2424
set -eu
25-
url="${{@:$#}}"
25+
url=""
26+
for arg do
27+
url="$arg"
28+
done
2629
printf '%s\\n' "$url" >> "{calls}"
2730
case "$url" in
2831
*"/releases/latest")

0 commit comments

Comments
 (0)