002-fix_dupes_per_archive fix script: small impr.

pull/604/head
GlassedSilver 3 years ago
parent 5cd3669634
commit 2354749c2f

@ -14,8 +14,8 @@ PATH_SUBSARCHIVE=/app/subscriptions/archives
PATH_ONEOFFARCHIVE=/app/appdata/archives PATH_ONEOFFARCHIVE=/app/appdata/archives
# Backup paths (substitute with your personal preference if you like) # Backup paths (substitute with your personal preference if you like)
PATH_SUBSARCHIVEBKP=$PATH_SUBSARCHIVE-$(date +%Y%m%d) PATH_SUBSARCHIVEBKP=$PATH_SUBSARCHIVE-BKP-$(date +%Y%m%d%H%M%S)
PATH_ONEOFFARCHIVEBKP=$PATH_ONEOFFARCHIVE-$(date +%Y%m%d) PATH_ONEOFFARCHIVEBKP=$PATH_ONEOFFARCHIVE-BKP-$(date +%Y%m%d%H%M%S)
# Define Colors for TUI # Define Colors for TUI
@ -101,7 +101,7 @@ if echo "$answer" | grep -iq "^y" ;then
done done
BEFORE=$(wc -l < $tmpfile) BEFORE=$(wc -l < $tmpfile)
AFTER=$(wc -l < $file) AFTER=$(wc -l < $file)
if [[ "$AFTER" < "$BEFORE" ]]; then if [[ "$AFTER" -ne "$BEFORE" ]]; then
printf "\b✔ Compacted down to ${AFTER} lines from ${BEFORE}: ${file}\n" printf "\b✔ Compacted down to ${AFTER} lines from ${BEFORE}: ${file}\n"
else else
printf "\b No action needed for file: ${file}\n" printf "\b No action needed for file: ${file}\n"

Loading…
Cancel
Save