index : releng | |
Archlinux32 release engineering | gitolite user |
summaryrefslogtreecommitdiff |
author | Erich Eckner <git@eckner.net> | 2020-03-06 11:55:18 +0100 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2020-03-06 11:55:18 +0100 |
commit | 2958d22f03ffa3cb7c120aa57c38ebf337bfef3f (patch) | |
tree | f46a09f5711d364f4b768d6b17c418b335b462e7 | |
parent | 823380f86420fdc9ccfefde601a49d5f4837431d (diff) |
-rwxr-xr-x | build-isos | 13 |
@@ -77,10 +77,19 @@ case "$(hostname -s)" in find "${destination}" -name 'archlinux-*' -not -name 'archlinux-'"${date}"'-*' \ | while read -r to_delete; do - if diff -q "${to_delete}" "${archive}/iso/${to_delete#${destination}/}"; then + if diff -q "${to_delete}" "${archive}/iso/${to_delete#${destination}/}" >/dev/null; then rm "${to_delete}" + printf '%s\n' "${to_delete}" \ + | sed ' + s@^.*/@@ + s/\./\\./g + s@.*@/ \0$/d@ + ' fi - done + done \ + >> "${tmp_dir}/delete-regex" + sed -i -f "${tmp_dir}/delete-regex" "${destination}/sha512sums" + sed -i -f "${tmp_dir}/delete-regex" "${destination}/md5sums" echo '... done.' ;; |