aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2019-12-14 21:46:52 -0800
committerRobin H. Johnson <robbat2@gentoo.org>2019-12-14 21:47:01 -0800
commitcaf99085daf95eda2360451ecc1e934ff9fe294c (patch)
tree24663528cd0b59d1545208e446036512f4fdee1d
parentsnapshots-create.sh: fix gentoo*umd5sum (diff)
downloadmastermirror-scripts-caf99085daf95eda2360451ecc1e934ff9fe294c.tar.gz
mastermirror-scripts-caf99085daf95eda2360451ecc1e934ff9fe294c.tar.bz2
mastermirror-scripts-caf99085daf95eda2360451ecc1e934ff9fe294c.zip
snapshots-create: fix subtle bug in creation of portage-YYYYMMDD.tar.xz.umd5sum20191215T054826Z
The earlier fix where $FILENAME was hardcoded in a loop: for f in $FILENAME other_files ; do ... ($FILENAME) ... ; done; Meant that portage-YYYYMMDD.tar.xz.umd5sum wasn't created anymore Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
-rwxr-xr-xsnapshots-create.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/snapshots-create.sh b/snapshots-create.sh
index fb6c661..b230ca6 100755
--- a/snapshots-create.sh
+++ b/snapshots-create.sh
@@ -153,7 +153,7 @@ fi
rm -f "${EXCLUSION_LIST}" # Not needed after this
write_time_log "END TARBALL(tar,old) $(date -u)"
write_time_log "START TARBALL(umd5,old) $(date -u)"
-[ ! -f " ${FILENAME}.umd5sum" ] && md5sum ${FILENAME%.bz2} > ${FILENAME}.umd5sum
+[ ! -f " ${FILENAME}.umd5sum" ] && md5sum ${FILENAME%.bz2} | tee ${FILENAME%.bz2}.bz2.umd5sum ${FILENAME%.bz2}.xz.umd5sum >/dev/null
write_time_log "END TARBALL(umd5,old) $(date -u)"
# end 1b)