3
0
Fork 0
forked from mirrors/nixpkgs

build-dotnet-module: don't end with exit code 1 when update was sucessfull

otherwise scripts might end prematurely
This commit is contained in:
Sandro Jäckel 2022-10-15 01:49:49 +02:00 committed by Sandro Jäckel
parent 17371df3ec
commit 0f386859f5
No known key found for this signature in database
GPG key ID: B1763F8651144063

View file

@ -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