fix: test to ensure arguments are passed

This commit is contained in:
Tom Bereknyei 2022-11-14 19:40:01 -05:00 committed by tomberek
parent 5f9b5758b6
commit eea5a003d9

View file

@ -71,8 +71,9 @@ cat > "$nonFlakeDir/shebang.sh" <<EOF
#! nix --offline shell
#! nix flake1#fooScript
#! nix --no-write-lock-file --command bash
set -e
set -ex
foo
echo "\$@"
EOF
chmod +x "$nonFlakeDir/shebang.sh"
@ -524,3 +525,4 @@ expectStderr 1 nix flake metadata "$flake2Dir" --no-allow-dirty --reference-lock
# Test shebang
[[ $($nonFlakeDir/shebang.sh) = "foo" ]]
[[ $($nonFlakeDir/shebang.sh "bar") = "foo"$'\n'"bar" ]]