about summary refs log tree commit diff
path: root/scripts/nix-install-package.in
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/nix-install-package.in')
-rw-r--r--scripts/nix-install-package.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/nix-install-package.in b/scripts/nix-install-package.in
index 362ed035fbaf..4dc241ab76c0 100644
--- a/scripts/nix-install-package.in
+++ b/scripts/nix-install-package.in
@@ -11,7 +11,7 @@ die unless defined $pkgFile;
 # from a web browser, the user gets to see us.
 if (!defined $ENV{"NIX_HAVE_TERMINAL"}) {
     $ENV{"NIX_HAVE_TERMINAL"} = "1";
-    exec("xterm", "-e", "@bindir@/nix-install-package", "$pkgFile");
+    exec("xterm", "-e", "@shell@", "-c", "@bindir@/nix-install-package '$pkgFile' || read");
     die "cannot execute `xterm'";
 }