about summary refs log tree commit diff
path: root/tests/nix-shell.sh
diff options
context:
space:
mode:
authorSamuel Dionne-Riel <samuel@dionne-riel.com>2018-04-09T13·36-0400
committerSamuel Dionne-Riel <samuel@dionne-riel.com>2018-04-09T13·36-0400
commita4c9b2595e6e22250e4e744a35fff3c7f9cd85d9 (patch)
tree424893142aeedcca05dd1670d323bcf09d3d99b7 /tests/nix-shell.sh
parent9478f886810b8db87b7ebfe14343f77159c86a24 (diff)
Hardcodes `nix-shell` instead of `/usr/bin/env nix-shell`...
... in the ruby shebang test.
Diffstat (limited to 'tests/nix-shell.sh')
-rw-r--r--tests/nix-shell.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/nix-shell.sh b/tests/nix-shell.sh
index 7f14b6c31db6..d25c456cedfb 100644
--- a/tests/nix-shell.sh
+++ b/tests/nix-shell.sh
@@ -43,7 +43,7 @@ output=$($TEST_ROOT/shell.shebang.sh abc def)
 # Test nix-shell shebang mode for ruby
 # This uses a fake interpreter that returns the arguments passed
 # This, in turn, verifies the `rc` script is valid and the `load()` script (given using `-e`) is as expected.
-sed -e "s|@ENV_PROG@|$(type -p env)|" shell.shebang.rb > $TEST_ROOT/shell.shebang.rb
+sed -e "s|@SHELL_PROG@|$(type -p nix-shell)|" shell.shebang.rb > $TEST_ROOT/shell.shebang.rb
 chmod a+rx $TEST_ROOT/shell.shebang.rb
 
 output=$($TEST_ROOT/shell.shebang.rb abc ruby)