aboutsummaryrefslogtreecommitdiff
path: root/support/download/scp
blob: 167692917534252cb96bdfcfa7f6ae06cac5d3fd (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 scp, to be called from the download wrapper script
# Expected arguments:
#   $1: output file
#   $2: URL
# And this environment:
#   SCP       : the scp command to call

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

${SCP} "${url}" "${output}"