Open jpage4500 opened 7 years ago
What's happening: https://stackoverflow.com/questions/4412945/case-insensitive-search-replace-with-sed
Where:
function db_sha_local
echo $SHA_CONCAT | sed 's/\([0-9A-F]\{2\}\)/\\\\\\x\1/gI'
I tried replacing sed
with gsed
and it fixes the error message but it looks like the hashes never match. Need to investigate more.
Can fix by making the change: #404
FYI - I am seeing this with Dropbox Uploader v1.0 if I try to upload a file that already exists on Dropbox.
For example, if '/Sites/iusethis.luo.ma/trickster/Trickster-2.8_2800.zip' already exists:
dropbox_uploader.sh -p upload Trickster-2.8_2800.zip /Sites/iusethis.luo.ma/trickster/Trickster-2.8_2800.zip
gives this error:
sed: 1: "s/\([0-9A-F]\{2\}\)/\\x ...": bad flag in substitute command: 'I'
before this happens:
> Uploading "Trickster-2.8_2800.zip" to "/Sites/iusethis.luo.ma/trickster/Trickster-2.8_2800.zip"...
######################################################################## 100.0%
DONE
But it doesn't happen if the file does not exist on Dropbox already.
I hope that helps.
Any update on getting this resolved?
This should be fixed now that pull request https://github.com/andreafabrizi/Dropbox-Uploader/pull/520 has been merged.
Just started seeing this error. The file uploads fine which is strange.. but wanted to mention it anyway
I'm calling the script like this: