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:
parent
17371df3ec
commit
0f386859f5
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue