scp 339 B

12345678910111213141516
  1. #!/usr/bin/env bash
  2. # We want to catch any unexpected failure, and exit immediately
  3. set -e
  4. # Download helper for scp, to be called from the download wrapper script
  5. # Expected arguments:
  6. # $1: output file
  7. # $2: URL
  8. # And this environment:
  9. # SCP : the scp command to call
  10. output="${1}"
  11. url="${2}"
  12. ${SCP} "${url}" "${output}"