Merge branch '31-old-files-cleanup-buggy' into 'dev'

Correctly handle skipped files when cleaning obsolete files

See merge request atom/AtOM!43
This commit is contained in:
ScriptFanix 2026-04-01 01:31:11 +02:00
commit ecfa6f73c6

5
atom
View File

@ -226,7 +226,12 @@ do
rest=${line#*::AtOM:SQL:Sep::}
removeFileDestName=${rest%%::AtOM:SQL:Sep::*}
rest=${rest#*::AtOM:SQL:Sep::}
if [[ -n "${rest%%::AtOM:SQL:Sep::*}" ]]
then
removefile[$removeFileId]="${destinationpath["$removeFileDestName"]}/${rest%%::AtOM:SQL:Sep::*}"
else
removefile[$removeFileId]=''
fi
read -u4 -r -d $'\0' line
done
done