simplified
This commit is contained in:
parent
4385ae5a9d
commit
135ea790e2
1 changed files with 3 additions and 3 deletions
18
ubuntu-bash/sget.sh
Executable file
18
ubuntu-bash/sget.sh
Executable file
|
@ -0,0 +1,18 @@
|
|||
#!/bin/bash
|
||||
|
||||
function sget() {
|
||||
# cd to appropriate directory
|
||||
wget -q $1
|
||||
wget -q ${1}.minisig
|
||||
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
|
||||
}
|
||||
|
||||
sget $1
|
Loading…
Add table
Add a link
Reference in a new issue