now compression reports progress...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2025-03-13 01:09:59 +03:00
parent 586e8758b4
commit 69bc6ccc2b

View File

@ -91,9 +91,20 @@ fi
# do the work... # do the work...
find "$BASE_PATH" -name \*.${EXT} -exec ${ARCH} \; \ #find "$BASE_PATH" -name \*.${EXT} -exec ${ARCH} \; \
&& echo done. # && echo done.
IFS=$'\n'
ARWs=($(find "$BASE_PATH" -name \*.${EXT}))
COUNT=${#ARWs[@]}
DONE=1
for f in "${ARWs[@]}" ; do
echo $f
printf 'Doing: %d/%d\r' $DONE $COUNT
eval "${ARCH/\{\}/\"$f\"}" > /dev/null
DONE=$((DONE + 1))
done
echo done.
# vim:set nowrap nospell : # vim:set nowrap nospell :