mirror of
https://github.com/BtbN/FFmpeg-Builds.git
synced 2025-04-30 06:34:32 +02:00
Add check-wget
This commit is contained in:
parent
2ddab26445
commit
83d330ffbf
@ -10,3 +10,4 @@ RUN \
|
||||
|
||||
ADD run_stage.sh /usr/bin/run_stage
|
||||
ADD git-mini-clone.sh /usr/bin/git-mini-clone
|
||||
ADD check-wget.sh /usr/bin/check-wget
|
||||
|
10
images/base/check-wget.sh
Executable file
10
images/base/check-wget.sh
Executable file
@ -0,0 +1,10 @@
|
||||
#!/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}"
|
Loading…
x
Reference in New Issue
Block a user