From 51951403ec33c415df715d8db5ebfcd0bbebcb7f Mon Sep 17 00:00:00 2001 From: Justin Bedo Date: Thu, 6 Jan 2022 13:24:35 +1100 Subject: strip-store-paths: allow no files --- default.nix | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'default.nix') diff --git a/default.nix b/default.nix index 1c550b8..3ec0450 100644 --- a/default.nix +++ b/default.nix @@ -151,11 +151,7 @@ let stripCommand = '' function rewriteOutput { - if [ -f ''${!1} ] ; then - strip-store-paths ''${!1} - else - find ''${!1} -type f -print0 | xargs -0 -n1 strip-store-paths - fi + find ''${!1} -type f -print0 | xargs -0 -n1 strip-store-paths } for o in $outputs ; do rewriteOutput $o -- cgit v1.2.3