You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

11 lines
238 B
Bash

#!/bin/bash
set -euo pipefail;
if [[ -z "${1:-}" ]]; then
echo "Missing file for upload" > /dev/stderr;
exit 2;
fi
curl -H "Linx-Api-Key: {{ auth_code }}" -H "Linx-Delete-Key: {{ auth_code }}" -T "$1" https://{{ domain }}/upload/;