From db5e3cfd2dd07b2075c8192ebe00992913fba1e3 Mon Sep 17 00:00:00 2001 From: Ben Wilson Date: Thu, 13 May 2021 10:56:06 +0100 Subject: [PATCH] Fix issue if folder wasn't yet there (fresh run) --- auto/clean | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/auto/clean b/auto/clean index 8221855..c1abd68 100755 --- a/auto/clean +++ b/auto/clean @@ -4,4 +4,8 @@ lb clean noauto "$@" rm -f config/binary config/bootstrap \ config/chroot config/common config/source \ config/package-lists/live.list.chroot -find config/hooks/ -type l | xargs --no-run-if-empty rm -f + +if [ -e config/hooks/ ]; then + find config/hooks/ -type l \ + | xargs --no-run-if-empty rm -f +fi