Fix spaces in url for curl upload
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Michel Roux 2022-10-02 08:51:20 +00:00
parent ae6b4d724a
commit 57d2862621

View File

@ -2,5 +2,6 @@
for FILE in output/epubs/* for FILE in output/epubs/*
do 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 done