aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Fix error checking inside upload_all()HEADmasterXavier Del Campo Romero8 days1-2/+9
| | | | | | | | Because of historical reason, set -e is ignored inside function bodies [1], which caused the script to attempt to share a file even if the upload had failed. [1]: https://lists.gnu.org/archive/html/bug-bash/2012-12/msg00094.html
* Replace --fail-with-body with -fXavier Del Campo Romero2025-04-171-3/+3
| | | | | | | The former might not be available on older versions of cURL, such as that distributed by Ubuntu focal. Also, upload-artifact is not interested in the HTTP body returned on 4xx errors, so the latter is more appropriate.
* upload-artifact: Set default directory on getdirXavier Del Campo Romero2025-01-261-0/+2
| | | | | Otherwise, uploads without the `-d` flag are broken because the first file is considered the directory to upload to.
* upload-artifact: Add missing ;;Xavier Del Campo Romero2025-01-261-0/+1
|
* Support uploading artifacts to a directoryXavier Del Campo Romero2025-01-131-5/+28
| | | | | So far, the root directory (i.e., /) was assumed as the directory to upload artifacts to. This might be too limiting for some users.
* Add README.mdXavier Del Campo Romero2025-01-121-0/+47
|
* upload-artifact: Force curl(1) not to send "Expect" headerXavier Del Campo Romero2025-01-121-0/+1
| | | | | | | | | | | | | Under some circumstances, curl(1) sends 100-continue to the HTTP server. [1] While this is handled correctly by slcl, when used together with Apache as a reverse proxy, for some unknown reason the Content-Length is not sent to slcl by Apache, and therefore returns a 502 Proxy Error. Setting the proxy-sendcl environment variable [2] to Apache did not help, either. [1]: https://gms.tf/when-curl-sends-100-continue.html [2]: https://httpd.apache.org/docs/current/mod/mod_proxy.html#request-bodies
* upload-artifact: Replace USER with USERNAMEXavier Del Campo Romero2025-01-121-6/+6
| | | | | USER is an environment variable that might be already defined by the shell.
* Introduce upload-artifactXavier Del Campo Romero2025-01-122-0/+747
As its name suggests, this simple shell script allows to upload one or more artifacts to a slcl instance.