From 578d17ab21ced3db7f145ea208c52cf97a6a4a91 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Mon, 12 Mar 2018 21:05:42 +0100 Subject: bin/build-packages: set permissions to 777 before deleting old build-tmp-dir --- bin/build-packages | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'bin') diff --git a/bin/build-packages b/bin/build-packages index 0f0c841..ea346bc 100755 --- a/bin/build-packages +++ b/bin/build-packages @@ -264,7 +264,11 @@ while [ "${count}" -ne 0 ]; do -mindepth 1 \ -maxdepth 1 \ -name 'tmp.build-packages.??????' \ - -exec rm -rf --one-file-system {} \; + -printf '%p\n' | \ + while read -r old_tmp_dir; do + find "${old_tmp_dir}" -xdev -exec chmod 777 {} \; + rm -rf --one-file-system "${old_tmp_dir}" + done tmp_dir=$(mktemp -d "${work_dir}/tmp.build-packages.XXXXXX") trap bail_out EXIT -- cgit v1.2.3-70-g09d2