002-fix_dupes_per_archive: Add info messsages

This commit is contained in:
GlassedSilver
2022-05-09 06:16:32 +02:00
parent 301d8a6ae3
commit 2328502c0d

View File

@@ -103,6 +103,8 @@ if echo "$answer" | grep -iq "^y" ;then
AFTER=$(wc -l < $file)
if [[ "$AFTER" < "$BEFORE" ]]; then
printf "\b✔ Compacted down to ${AFTER} lines from ${BEFORE}: ${file}\n"
else
printf "\b No action needed for file: ${file}\n"
fi
done
@@ -123,6 +125,8 @@ if echo "$answer" | grep -iq "^y" ;then
AFTER=$(wc -l < $file)
if [ "$BEFORE" -ne "$AFTER" ]; then
printf "\b✔ Compacted down to ${AFTER} lines from ${BEFORE}: ${file}\n"
else
printf "\b No action needed for file: ${file}\n"
fi
done
tput cnorm # show the cursor