sync-res: proper matching on name

This commit is contained in:
dogeystamp 2024-09-30 20:32:50 -04:00
parent 1b196370b3
commit c97f76034a
Signed by: dogeystamp
GPG Key ID: 7225FE3592EFFA38

View File

@ -16,7 +16,7 @@ if [ -z "$1" ]; then
die usage: $PROGNAME file.sync-conflict-XXXXXXXX-XXXXXX-XXXXXXX
fi
ORIG=$(echo "$1" | sed 's/\.sync-conflict.*$//')
ORIG=$(echo "$1" | sed -E 's/\.sync-conflict-[0-9]{8}-[0-9]{6}-[A-Z]{7}//')
if [ "$ORIG" = "$1" ]; then
die Could not find original file. Is this a sync-conflict file?