diff options
Diffstat (limited to 'squashfu')
-rwxr-xr-x | squashfu | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -237,6 +237,10 @@ action_backup () { fi done + if ((${#TRUNCATE_LOGS[@]} != 0)); then + find "${TRUNCATE_LOGS[@]}" -type f \( -name "*.log" -o -name "*.log.*" \) ! -name "*.gz" -exec truncate -s 0 {} \; -o -name "*.gz" -exec rm -f {} \; + fi + check_for_resquash [[ val=$? -gt 0 ]] && create_new_squash $val |