diff options
author | Matthew Bauer <mjbauer95@gmail.com> | 2019-04-22 23:02:49 -0400 |
---|---|---|
committer | Matthew Bauer <mjbauer95@gmail.com> | 2019-04-26 21:55:07 -0400 |
commit | 2522f58b0ec9029622bcecafbdb0bf8de2ecd9a6 (patch) | |
tree | 072cb34bb1c9fe38ce161e6cf402b2ef929aa892 /pkgs/tools/filesystems/e2fsprogs | |
parent | eaf153b17eebb03c708978da9b2529ea7ad95ab9 (diff) |
e2fsprogs: check if e2scrub_all_cron exists
doesn’t exist on macos
Diffstat (limited to 'pkgs/tools/filesystems/e2fsprogs')
-rw-r--r-- | pkgs/tools/filesystems/e2fsprogs/default.nix | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/pkgs/tools/filesystems/e2fsprogs/default.nix b/pkgs/tools/filesystems/e2fsprogs/default.nix index e601a12e6e6f..11f107e994f9 100644 --- a/pkgs/tools/filesystems/e2fsprogs/default.nix +++ b/pkgs/tools/filesystems/e2fsprogs/default.nix @@ -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; |