linux-firmware: bump version
[buildroot-gz.git] / support / download / cp
blob132cad728063ab114563823a0a0808208d0ece32
1 #!/usr/bin/env bash
3 # We want to catch any unexpected failure, and exit immediately
4 set -e
6 # Download helper for cp, to be called from the download wrapper script
8 # Call it as:
9 # .../cp [-q] OUT_FILE SRC_FILE
11 # Environment:
12 # LOCALFILES: the cp command to call
14 verbose=-v
15 while getopts :q OPT; do
16 case "${OPT}" in
17 q) verbose=;;
18 \?) printf "unknown option '%s'\n" "${OPTARG}" >&2; exit 1;;
19 esac
20 done
21 shift $((OPTIND-1))
23 output="${1}"
24 source="${2}"
26 ${LOCALFILES} ${verbose} "${source}" "${output}"