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