about summary refs log tree commit diff
path: root/corepkgs/nar/unnar.sh.in
diff options
context:
space:
mode:
Diffstat (limited to 'corepkgs/nar/unnar.sh.in')
-rw-r--r--corepkgs/nar/unnar.sh.in6
1 files changed, 2 insertions, 4 deletions
diff --git a/corepkgs/nar/unnar.sh.in b/corepkgs/nar/unnar.sh.in
index b0b6f9d468f2..6fab350a1782 100644
--- a/corepkgs/nar/unnar.sh.in
+++ b/corepkgs/nar/unnar.sh.in
@@ -1,6 +1,4 @@
-#! /bin/sh
-
-export PATH=/bin:/usr/bin
+#! @shell@ -e
 
 echo "unpacking $narFile to $out..."
-bunzip2 < $narFile | @bindir@/nix-store --restore "$out" || exit 1
+@bunzip2@ < $narFile | @bindir@/nix-store --restore "$out"