220d0cb924
Special thanks to @ppbrown. I still need to find time to add the enhancements and corrections from @ppbrown. https://github.com/4-S/4S/issues/2
18 lines
420 B
Bash
Executable file
18 lines
420 B
Bash
Executable file
#!/bin/bash
|
|
|
|
function getsecurefile() {
|
|
# cd to appropriate directory
|
|
wget -q $1
|
|
wget -q $2
|
|
fname=`basename $1`
|
|
if minisign -Vm $fname -P RWSmY4o5Bad1vS60aYAiQUswWYVV2EuSdqc3ry7CWWF1E6bVbFG9kR/y >/dev/null ; then
|
|
echo DEBUG: downloaded valid file $fname
|
|
return 0
|
|
fi
|
|
# File failed signature check ....
|
|
echo DEBUG: downloaded file $fname failed signature check
|
|
mv $fname $fname.minisig /tmp
|
|
return 1
|
|
}
|
|
|
|
getsecurefile $1 $2 |