sync-res.sh: fix syncthing id regex
This commit is contained in:
parent
fecb7ed935
commit
003933c2ef
@ -16,7 +16,7 @@ if [ -z "$1" ]; then
|
|||||||
die usage: $PROGNAME file.sync-conflict-XXXXXXXX-XXXXXX-XXXXXXX
|
die usage: $PROGNAME file.sync-conflict-XXXXXXXX-XXXXXX-XXXXXXX
|
||||||
fi
|
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
|
if [ "$ORIG" = "$1" ]; then
|
||||||
die Could not find original file. Is this a sync-conflict file?
|
die Could not find original file. Is this a sync-conflict file?
|
||||||
|
Loading…
Reference in New Issue
Block a user