index : builder | |
Archlinux32 build system | gitolite user |
summaryrefslogtreecommitdiff |
author | Erich Eckner <git@eckner.net> | 2018-03-12 21:05:42 +0100 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2018-03-12 21:06:11 +0100 |
commit | 578d17ab21ced3db7f145ea208c52cf97a6a4a91 (patch) | |
tree | c2cbbbfd1b012dcdcca28b3186404bf1737d5a2a /bin | |
parent | 3137ac0fe134369bc1f4805b00df09af01965022 (diff) |
-rwxr-xr-x | bin/build-packages | 6 |
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 |