summary refs log tree commit diff
path: root/pkgs/build-support
diff options
context:
space:
mode:
authorSandro Jäckel <sandro.jaeckel@gmail.com>2022-10-15 01:49:49 +0200
committerSandro Jäckel <sandro.jaeckel@sap.com>2022-10-25 16:12:22 +0200
commit0f386859f50c843c8e10a0ba1f3a6b9aa5d9a186 (patch)
tree8b99fc6f350b890559014adfc7a48a8c9d98089c /pkgs/build-support
parent17371df3ec3c981230c13675fe129b971f048434 (diff)
build-dotnet-module: don't end with exit code 1 when update was sucessfull
otherwise scripts might end prematurely
Diffstat (limited to 'pkgs/build-support')
-rw-r--r--pkgs/build-support/dotnet/build-dotnet-module/default.nix4
1 files changed, 3 insertions, 1 deletions
diff --git a/pkgs/build-support/dotnet/build-dotnet-module/default.nix b/pkgs/build-support/dotnet/build-dotnet-module/default.nix
index 5a465b48c1d7e..5e8d76defe76d 100644
--- a/pkgs/build-support/dotnet/build-dotnet-module/default.nix
+++ b/pkgs/build-support/dotnet/build-dotnet-module/default.nix
@@ -204,7 +204,9 @@ stdenvNoCC.mkDerivation (args // {
             fi
 
             # Since mktemp is used this will be empty if the script didnt succesfully complete
-            ! test -s "$depsFile" && rm -rf "$depsFile"
+            if ! test -s "$depsFile"; then
+              rm -rf "$depsFile"
+            fi
         }
 
         trap exitTrap EXIT INT TERM