new commit

This commit is contained in:
Manuel 2023-05-23 13:51:00 +00:00
parent 48aa89c2b1
commit 214b1ba2ed
1 changed files with 7 additions and 3 deletions

View File

@ -8,6 +8,8 @@
# License: GPL-3.0-or-later # License: GPL-3.0-or-later
################################################################################ ################################################################################
#!/bin/bash
# Set environment variables # Set environment variables
PREFIX=PepMini PREFIX=PepMini
SUFFIX=dev-i386 SUFFIX=dev-i386
@ -38,12 +40,14 @@ mv ${FileName}-${TODAY}-sha512.checksum ${LOCATION}
rm -f ${LOCATION}/${FileName}*.iso rm -f ${LOCATION}/${FileName}*.iso
rm -f ${LOCATION}/${FileName}*-sha512.checksum rm -f ${LOCATION}/${FileName}*-sha512.checksum
# Move the log file to the log directory # Move the log file to the log directory (if it exists)
[ ! -e ${LogDir} ] && mkdir -p ${LogDir} if [ -f /tmp/${PREFIX}${SUFFIX}.out ]; then
mv /tmp/${PREFIX}${SUFFIX}.out ${LogDir}/${PREFIX}-${SUFFIX}-${BUILD}.log mv /tmp/${PREFIX}${SUFFIX}.out ${LogDir}/${PREFIX}-${SUFFIX}-${BUILD}.log
fi
# Remove old files from the cache # 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 grep "Del " ${LogDir}/${PREFIX}-${SUFFIX}-${BUILD}.log | sort -u | cut -f2,3 -d" " | tr " " "_" | tr ":" "*" | tr "+" "*" | xargs -I {} find ./cache/packages.* -name "{}*.deb" -delete
# Remove the "fusato" directory and its contents # Remove the "fusato" directory and its contents
rm -rf fusato rm -rf fusato