index : releng | |
Archlinux32 release engineering | gitolite user |
summaryrefslogtreecommitdiff |
author | Erich Eckner <git@eckner.net> | 2020-03-06 11:12:55 +0100 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2020-03-06 11:12:55 +0100 |
commit | 823380f86420fdc9ccfefde601a49d5f4837431d (patch) | |
tree | 5fa58fa56d7643fa0d4bd53f3ac302221045fe0b | |
parent | ad4a77de2c3775d73ad8549995738a23dc6f0547 (diff) |
-rwxr-xr-x | build-isos | 8 |
@@ -4,6 +4,7 @@ set -e +archive='/mnt/archlinux32archive' destination='/mnt/archlinux32/archisos' base_dir=$( readlink -e "${0%/*}" @@ -74,6 +75,13 @@ case "$(hostname -s)" in git -C "${base_dir}/../archweb32" commit 'download/index.html' -m 'download/index.html: new isos ('"${date}"')' git -C "${base_dir}/../archweb32" push + 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 + rm "${to_delete}" + fi + done + echo '... done.' ;; 'nlopc46') |