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

8 lines
239 B
Bash
Raw Normal View History

2021-05-18 13:21:20 +00:00
#!/usr/bin/env bash
2022-10-05 21:51:42 +00:00
for FILE in output/*
2021-05-18 13:21:20 +00:00
do
2022-10-02 08:51:20 +00:00
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}"
2021-05-18 13:21:20 +00:00
done