kumquat-buildroot/support/download/scp
Yann E. MORIN 5b3880e174 support/download: convert scp to use the wrapper
This drastically simplifies the scp helper, as it no longer has to deal
with atomically saving the downloaded archive.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Tested-by: Thomas De Schampheleire <thomas.de.schampheleire@gmail.com>
(Tested by setting a primary site to 'scp://localhost:/tmp' and
running 'make vim-source')
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2014-08-04 20:12:25 +02:00

17 lines
331 B
Bash
Executable File

#!/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}"