aboutsummaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorMarcoFalke <falke.marco@gmail.com>2016-08-21 21:37:21 +0200
committerMarcoFalke <falke.marco@gmail.com>2016-08-21 21:37:30 +0200
commitfa917f662346868486cdffce92a1fbe34980a72b (patch)
treef148532f224855b566cdfa5bf5d296656df333cf /contrib
parentfab1f9272c4999cd505f1e56eb348b5eb4bb38cb (diff)
[contrib] verifybinaries: Keep downloads by default
Diffstat (limited to 'contrib')
-rw-r--r--contrib/verifybinaries/README.md6
-rwxr-xr-xcontrib/verifybinaries/verify.sh11
2 files changed, 14 insertions, 3 deletions
diff --git a/contrib/verifybinaries/README.md b/contrib/verifybinaries/README.md
index d43a60ca0f..516af8575f 100644
--- a/contrib/verifybinaries/README.md
+++ b/contrib/verifybinaries/README.md
@@ -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
+```
diff --git a/contrib/verifybinaries/verify.sh b/contrib/verifybinaries/verify.sh
index 40759c36bc..e22b911743 100755
--- a/contrib/verifybinaries/verify.sh
+++ b/contrib/verifybinaries/verify.sh
@@ -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"