* Pause if errors occur.

This commit is contained in:
Eelco Dolstra 2005-02-25 15:58:00 +00:00
parent 6bafeafb88
commit 8d3c346559

View file

@ -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'";
}