mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-22 22:16:16 +02:00
fix: test to ensure arguments are passed
This commit is contained in:
parent
5f9b5758b6
commit
eea5a003d9
1 changed files with 3 additions and 1 deletions
|
@ -71,8 +71,9 @@ cat > "$nonFlakeDir/shebang.sh" <<EOF
|
||||||
#! nix --offline shell
|
#! nix --offline shell
|
||||||
#! nix flake1#fooScript
|
#! nix flake1#fooScript
|
||||||
#! nix --no-write-lock-file --command bash
|
#! nix --no-write-lock-file --command bash
|
||||||
set -e
|
set -ex
|
||||||
foo
|
foo
|
||||||
|
echo "\$@"
|
||||||
EOF
|
EOF
|
||||||
chmod +x "$nonFlakeDir/shebang.sh"
|
chmod +x "$nonFlakeDir/shebang.sh"
|
||||||
|
|
||||||
|
@ -524,3 +525,4 @@ expectStderr 1 nix flake metadata "$flake2Dir" --no-allow-dirty --reference-lock
|
||||||
|
|
||||||
# Test shebang
|
# Test shebang
|
||||||
[[ $($nonFlakeDir/shebang.sh) = "foo" ]]
|
[[ $($nonFlakeDir/shebang.sh) = "foo" ]]
|
||||||
|
[[ $($nonFlakeDir/shebang.sh "bar") = "foo"$'\n'"bar" ]]
|
||||||
|
|
Loading…
Reference in a new issue