1
0
Fork 0
mirror of https://github.com/Luzifer/share.git synced 2024-12-20 18:41:17 +00:00
share/ci/combine.sh

18 lines
264 B
Bash
Raw Normal View History

#!/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/$*"