From 26ab6193013e591ad961bd7794dff399eff25734 Mon Sep 17 00:00:00 2001 From: Manuel Fernando da silva rosa Date: Tue, 23 May 2023 18:41:39 +0000 Subject: [PATCH] Modificar 'PepDeb32/BldHelper-release.sh' Signed-off-by: Manuel Fernando da silva rosa --- PepDeb32/BldHelper-release.sh | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/PepDeb32/BldHelper-release.sh b/PepDeb32/BldHelper-release.sh index 3a087eb..ec63d57 100755 --- a/PepDeb32/BldHelper-release.sh +++ b/PepDeb32/BldHelper-release.sh @@ -31,23 +31,20 @@ mv *.iso ${FileName}-${TODAY}.iso # Create the checksum file for the ISO sha512sum ${FileName}-${TODAY}.iso > ${FileName}-${TODAY}-sha512.checksum +# Remove old ISO and checksum files from the desired location +rm -f ${LOCATION}/${FileName}*.iso +rm -f ${LOCATION}/${FileName}*-sha512.checksum + # Move the ISO and checksum files to the desired location mkdir -p ${LOCATION} mv ${FileName}-${TODAY}.iso ${LOCATION} mv ${FileName}-${TODAY}-sha512.checksum ${LOCATION} -# Remove old ISO and checksum files from the desired location -rm -f ${LOCATION}/${FileName}*.iso -rm -f ${LOCATION}/${FileName}*-sha512.checksum - # Move the log file to the log directory (if it exists) if [ -f /tmp/${PREFIX}${SUFFIX}.out ]; then mv /tmp/${PREFIX}${SUFFIX}.out ${LogDir}/${PREFIX}-${SUFFIX}-${BUILD}.log fi -# Remove old files from the cache -grep "Del " ${LogDir}/${PREFIX}-${SUFFIX}-${BUILD}.log | sort -u | cut -f2,3 -d" " | tr " " "_" | tr ":" "*" | tr "+" "*" | xargs -I {} find ./cache/packages.* -name "{}*.deb" -delete - # Clean the build folder lb clean