mirror of
https://github.com/RROrg/rr.git
synced 2025-06-21 05:51:05 +08:00
fix something
This commit is contained in:
parent
84a1392123
commit
059aeab95d
@ -1296,9 +1296,10 @@ function make() {
|
||||
while true; do
|
||||
SIZE=256 # initrd-dsm + zImage-dsm ≈ 210M
|
||||
SPACELEFT=$(df -m ${PART3_PATH} 2>/dev/null | awk 'NR==2 {print $4}')
|
||||
[ ${SPACELEFT:-0} -ge ${SIZE} ] && break
|
||||
[ -f ${MOD_ZIMAGE_FILE} ] && rm -f "${MOD_ZIMAGE_FILE}" && continue
|
||||
[ -f ${MOD_RDGZ_FILE} ] && rm -f "${MOD_RDGZ_FILE}" && continue
|
||||
ZIMAGESIZE=$(du -m ${ORI_ZIMAGE_FILE} 2>/dev/null | awk '{print $1}')
|
||||
RDGZSIZE=$(du -m ${ORI_RDGZ_FILE} 2>/dev/null | awk '{print $1}')
|
||||
SPACEALL=$((${SPACELEFT:-0} + ${ZIMAGESIZE:-0} + ${RDGZSIZE:-0}))
|
||||
[ ${SPACEALL:-0} -ge ${SIZE} ] && break
|
||||
echo -e "$(TEXT "No disk space left, please clean the cache and try again!")" >"${LOG_FILE}"
|
||||
return 1
|
||||
done
|
||||
|
Loading…
x
Reference in New Issue
Block a user