sync-res.sh: fix syncthing id regex

This commit is contained in:
dogeystamp 2024-12-07 21:05:36 -05:00
parent fecb7ed935
commit 003933c2ef
No known key found for this signature in database

View File

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