e2fsprogs: check if e2scrub_all_cron exists

doesn’t exist on macos
This commit is contained in:
Matthew Bauer 2019-04-22 23:02:49 -04:00
parent eaf153b17e
commit 2522f58b0e

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;