mirror of
https://github.com/justinwoo/easy-dhall-nix.git
synced 2024-12-23 02:09:44 +01:00
chore(test.sh): drop result link with trap
This commit is contained in:
parent
805358c8ec
commit
0c13cebcf8
1 changed files with 6 additions and 2 deletions
8
test.sh
8
test.sh
|
@ -1,4 +1,8 @@
|
|||
#!/usr/bin/env sh
|
||||
set -e
|
||||
test_script="$(nix-build ./test.nix)"
|
||||
exec "$test_script"
|
||||
tmp="$(mktemp -d)"
|
||||
trap "rm -r $tmp" EXIT
|
||||
nix-build \
|
||||
--out-link "$tmp"/result \
|
||||
./test.nix
|
||||
"$tmp/result"
|
||||
|
|
Loading…
Reference in a new issue