e2fsprogs: check if e2scrub_all_cron exists

doesn’t exist on macos
This commit is contained in:
Matthew Bauer
2019-04-26 21:55:07 -04:00
parent eaf153b17e
commit 2522f58b0e
+3 -1
View File
@@ -39,7 +39,9 @@ stdenv.mkDerivation rec {
postInstall = ''
# avoid cycle between outputs
mv $out/lib/${pname}/e2scrub_all_cron $bin/bin/
if [ -f $out/lib/${pname}/e2scrub_all_cron ]; then
mv $out/lib/${pname}/e2scrub_all_cron $bin/bin/
fi
'';
enableParallelBuilding = true;