1
0
Fork 0
mirror of https://github.com/Luzifer/share.git synced 2024-12-29 23:11:18 +00:00
share/ci/combine.sh
2021-08-26 15:29:25 +02:00

17 lines
264 B
Bash
Executable file

#!/bin/bash
set -euo pipefail
outfile=${1:-}
[[ -n $outfile ]] || {
echo "Missing outfile parameter" >&2
exit 1
}
shift
[ $# -gt 0 ] || {
echo "Missing combine files" >&2
exit 1
}
IFS=$','
exec curl -sSfLo "${outfile}" "https://cdn.jsdelivr.net/combine/$*"