This commit is contained in:
Para Dox
2025-04-27 17:17:12 +07:00
parent 08b27a4a3b
commit 037a01b7c2

View File

@@ -139,7 +139,14 @@ services:
# Move files for the current group
for file_range in "$${files_to_move[@]}"; do
base="$${file_range#*:}" # Remove block range part, keeping the full filename
for ext in "" ".conf" ".off"; do
# Handle base file (no extension) first
if [[ -f "$$base" ]]; then
size=$$(stat --printf="%s" "$$base")
mv "$$base" "/data/static_files/delete_me"
echo "Moved $$base to backup."
fi
# Handle files with extensions .conf and .off
for ext in .conf .off; do # Removed quotes and empty string from loop list
file="$${base}$${ext}"
if [[ -f "$$file" ]]; then
size=$$(stat --printf="%s" "$$file")