mirror of
https://github.com/Luzifer/share.git
synced 2024-12-20 18:41:17 +00:00
18 lines
264 B
Bash
18 lines
264 B
Bash
|
#!/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/$*"
|