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 c1203f98fe
All checks were successful
continuous-integration/drone/push Build is passing
Change path
2022-10-05 21:51:42 +00:00

8 lines
239 B
Bash

#!/usr/bin/env bash
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}"
done