aboutsummaryrefslogtreecommitdiff
path: root/support/download/cp
blob: 264f5dc522620d72a0644eaabccdc3090719331b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/bash

# We want to catch any unexpected failure, and exit immediately
set -e

# Download helper for cp, to be called from the download wrapper script
# Expected arguments:
#   $1: output file
#   $2: source file
# And this environment:
#   LOCALFILES: the cp command to call

output="${1}"
source="${2}"

${LOCALFILES} "${source}" "${output}"