new commit
This commit is contained in:
parent
48aa89c2b1
commit
214b1ba2ed
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue