diff --git a/convert.sh b/convert.sh index 9860f7a..862f896 100644 --- a/convert.sh +++ b/convert.sh @@ -1,6 +1,6 @@ #!/usr/bin/env bash -for FILE in output/epubs/* +for FILE in output/* do ebook-polish -fjpuiHU "${FILE}" "${FILE}" ebook-convert "${FILE}" "${FILE%.*}.pdf" diff --git a/upload.sh b/upload.sh index ad71278..fd9d1aa 100644 --- a/upload.sh +++ b/upload.sh @@ -1,6 +1,6 @@ #!/usr/bin/env bash -for FILE in output/epubs/* +for FILE in output/* do 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}"