FFmpeg-Builds/images/base/check-wget.sh

11 lines
203 B
Bash
Raw Normal View History

2020-10-30 13:23:30 +00:00
#!/bin/bash
set -xe
FNAME="$1"
URL="$2"
SHA512="$3"
SHAFILE="${FNAME}.sha512"
wget -O "${FNAME}" "${URL}"
trap "rm -f ${SHAFILE}" EXIT
echo "${SHA512} ${FNAME}" > "${SHAFILE}"
sha512sum -c "${SHAFILE}"