about summary refs log tree commit diff
path: root/scripts/nix-install-package.in
diff options
context:
space:
mode:
authorEelco Dolstra <e.dolstra@tudelft.nl>2006-09-25T10·44+0000
committerEelco Dolstra <e.dolstra@tudelft.nl>2006-09-25T10·44+0000
commit68ae953d8a492061bcda7c4d7bf2f5b9432f791c (patch)
treed5e35a4fe76bf043539d8a49bb00e9e220fa364c /scripts/nix-install-package.in
parent76c971009149f73453ccec66392625f2b67f8785 (diff)
* Clean up calls to system().
Diffstat (limited to 'scripts/nix-install-package.in')
-rw-r--r--scripts/nix-install-package.in8
1 files changed, 4 insertions, 4 deletions
diff --git a/scripts/nix-install-package.in b/scripts/nix-install-package.in
index 4f5b0087fee3..35f6d6824838 100644
--- a/scripts/nix-install-package.in
+++ b/scripts/nix-install-package.in
@@ -68,7 +68,7 @@ if ($interactive && !defined $ENV{"NIX_HAVE_TERMINAL"}) {
 my $tmpDir;
 do { $tmpDir = tmpnam(); }
 until mkdir $tmpDir, 0777;
-END { if (defined $tmpDir) { my $x = $?; system ("@coreutils@/rm", "-rf", $tmpDir); $? = $x; } }
+END { if (defined $tmpDir) { my $x = $?; system("@coreutils@/rm", "-rf", $tmpDir); $? = $x; } }
 
 
 sub barf {
@@ -83,7 +83,7 @@ sub barf {
 my $pkgFile = $source;
 if ($fromURL) {
     $pkgFile = "$tmpDir/tmp.nixpkg";
-    system ("@curl@", "--silent", $source, "-o", $pkgFile) == 0
+    system("@curl@", "--silent", $source, "-o", $pkgFile) == 0
         or barf "curl failed: $?";
 }
 
@@ -124,12 +124,12 @@ if ($interactive) {
 
 
 print "\nPulling manifests...\n";
-system ("@bindir@/nix-pull", $manifestURL) == 0
+system("@bindir@/nix-pull", $manifestURL) == 0
     or barf "nix-pull failed: $?";
 
 
 print "\nInstalling package...\n";
-system ("@bindir@/nix-env", "--install", $outPath, @extraNixEnvArgs) == 0
+system("@bindir@/nix-env", "--install", $outPath, @extraNixEnvArgs) == 0
     or barf "nix-env failed: $?";