mirror of
https://github.com/Tzahi12345/YoutubeDL-Material.git
synced 2026-04-17 18:01:29 +03:00
002-fix_dupes_per_archive fix script: small impr.
This commit is contained in:
@@ -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"
|
||||||
|
|||||||
Reference in New Issue
Block a user