diff --git a/upload.sh b/upload.sh index 618ec0f..ad71278 100644 --- a/upload.sh +++ b/upload.sh @@ -2,5 +2,6 @@ for FILE in output/epubs/* do - curl -Ss -u "${USERNAME}":"${PASSWORD}" -T "${FILE}" "https://cloud.crystalyx.net/remote.php/dav/files/${USERNAME}/Public/TWI/${FILE##*/}" + FILE_URL=$(sed "s/ /%20/g" <<< "${FILE##*/}") + curl -Ss -u "${USERNAME}":"${PASSWORD}" -T "${FILE}" "https://cloud.crystalyx.net/remote.php/dav/files/${USERNAME}/Public/TWI/${FILE_URL}" done