buildrootschalter/support/download/scp
Yann E. MORIN 54adff55d5 pkg-infra: move the scp download helper to a script
Maintaining the download helpers in the Makefile has proved to be a bit
complex, so move it to a shell script.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
2014-07-03 00:07:12 +02:00

17 lines
275 B
Bash
Executable File

#!/bin/bash
# We want to catch any command failure, and exit immediately
set -e
# Download helper for scp
# Call it with:
# $1: URL
# $2: output file
# And this environment:
# SCP : the scp command to call
url="${1}"
output="${2}"
${SCP} "${url}" "${output}"