Browse Source

[contrib] verifybinaries: Keep downloads by default

0.14
MarcoFalke 8 years ago
parent
commit
fa917f6623
  1. 6
      contrib/verifybinaries/README.md
  2. 11
      contrib/verifybinaries/verify.sh

6
contrib/verifybinaries/README.md

@ -12,3 +12,9 @@ Usage: @@ -12,3 +12,9 @@ Usage:
./verify.sh bitcoin-core-0.12.0
./verify.sh bitcoin-core-0.13.0-rc3
```
If you do not want to keep the downloaded binaries, specify anything as the second parameter.
```sh
./verify.sh bitcoin-core-0.13.0 delete
```

11
contrib/verifybinaries/verify.sh

@ -108,11 +108,16 @@ if [ $? -eq 1 ]; then @@ -108,11 +108,16 @@ if [ $? -eq 1 ]; then
exit 1
elif [ $? -gt 1 ]; then
echo "Error executing 'diff'"
exit 2
exit 2
fi
#everything matches! clean up the mess
clean_up $FILES $SIGNATUREFILENAME $TMPFILE
if [ -n "$2" ]; then
echo "Clean up the binaries"
clean_up $FILES $SIGNATUREFILENAME $TMPFILE
else
echo "Keep the binaries in $WORKINGDIR"
clean_up $TMPFILE
fi
echo -e "Verified hashes of \n$FILES"

Loading…
Cancel
Save