forked from lix-project/lix
fix: test to ensure arguments are passed
This commit is contained in:
parent
5f9b5758b6
commit
eea5a003d9
|
@ -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" ]]
|
||||
|
|
Loading…
Reference in a new issue