Update cacherebuild.sh

This commit is contained in:
Igor Pečovnik
2021-11-29 21:14:53 +01:00
committed by GitHub
parent a1a9967869
commit e5b10ba84c

View File

@@ -32,6 +32,7 @@ DAYINMONTH=$(date -d "$D" '+%d' | sed 's/\<0//g')
REBUILDDAY=$(date -d "${MONTH}/1 + 1 month - ${DAYSBEFORE} day" "+%d")
MEM_INFO=$(($(LC_ALL=C free -w 2>/dev/null | grep "^Mem" | awk '{print $2}' || LC_ALL=C free | grep "^Mem"| awk '{print $2}')/1024))
r=0
truncate --size=0 ${FILE_OUT}
# jump to build script folder
cd ${BLTPATH}