This repository has been archived on 2024-02-23. You can view files and clone it, but cannot push or open issues or pull requests.
Auberge_Vagabonde/upload.sh
Michel Roux 57d2862621
All checks were successful
continuous-integration/drone/push Build is passing
Fix spaces in url for curl upload
2022-10-02 08:51:20 +00:00

8 lines
245 B
Bash

#!/usr/bin/env bash
for FILE in output/epubs/*
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}"
done