mirror of
https://github.com/Telecominfraproject/wlan-lanforge-scripts.git
synced 2025-11-01 03:07:56 +00:00
check_large_files.bash: slows down deletion on var tmp
This commit is contained in:
@@ -292,7 +292,7 @@ clean_var_log() {
|
|||||||
cd "$starting_dir"
|
cd "$starting_dir"
|
||||||
}
|
}
|
||||||
|
|
||||||
clean_mnt_fl_files() {
|
clean_mnt_lf_files() {
|
||||||
note "clean mnt lf files WIP"
|
note "clean mnt lf files WIP"
|
||||||
if (( $verbose > 0 )); then
|
if (( $verbose > 0 )); then
|
||||||
printf "%s\n" "${mnt_lf_files[@]}"
|
printf "%s\n" "${mnt_lf_files[@]}"
|
||||||
@@ -310,9 +310,13 @@ compress_report_data() {
|
|||||||
clean_var_tmp() {
|
clean_var_tmp() {
|
||||||
note "clean var tmp"
|
note "clean var tmp"
|
||||||
if (( $verbose > 0 )); then
|
if (( $verbose > 0 )); then
|
||||||
printf "%s\n" "${var_tmp_files[@]}"
|
printf " %s\n" "${var_tmp_files[@]}"
|
||||||
|
sleep 1
|
||||||
fi
|
fi
|
||||||
rf -f "${var_tmp_files[@]}"
|
for f in "${var_tmp_files[@]}"; do
|
||||||
|
rf -f "$f"
|
||||||
|
sleep 0.2
|
||||||
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user