002-fix_dupes_per_archive: Add info messsages

pull/604/head
GlassedSilver 4 years ago
parent 301d8a6ae3
commit 2328502c0d

@ -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

Loading…
Cancel
Save