Commit d026592c authored by Holger Levsen's avatar Holger Levsen

reproducible Debian: fixup 7a08f9df, only act if directory exists

Signed-off-by: Holger Levsen's avatarHolger Levsen <holger@layer-acht.org>
parent f2607a06
......@@ -577,7 +577,7 @@ fi
echo "$(date -u) - Checking for files with bad permissions."
# automatically fix rbuild files with wrong permissions...
# (we know it happens (very rarely) but... shrugs.)
find $DEBIAN_BASE/rbuild ! -perm 644 -type f -exec chmod -v 644 {} \;
[ ! -d $DEBIAN_BASE/rbuild ] || find $DEBIAN_BASE/rbuild ! -perm 644 -type f -exec chmod -v 644 {} \;
BADPERMS=$(find $DEBIAN_BASE/{buildinfo,dbd,artifacts,stretch,buster,unstable,experimental,rb-pkg} ! -perm 644 -type f 2>/dev/null|| true)
if [ ! -z "$BADPERMS" ] ; then
DIRTY=true
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment