tiny fixes

This commit is contained in:
q
2016-07-22 09:11:24 +03:00
parent 3df49ff0dd
commit e88a9c3fc8
2 changed files with 4 additions and 4 deletions

View File

@@ -51,11 +51,11 @@ function deletefolders() {
percent=$((200*$i/$folders % 2 + 100*$i/$folders))
printf "\r%02d:%02d:%02d %6d/%d %3d%% %s\033[0K" \
$(($SECONDS/3600)) $(($SECONDS%3600/60)) $(($SECONDS%60)) $i $folders $percent "$line"
rmdir "$line"
rm -rf "$line"
done < <(find "$@" -depth -type d -print0)
printf "\n"
}
echo Listing files...
echo Listing files in "${FOLDERS[@]}" ...
files=0
folders=0
listfiles "${FOLDERS[@]}"