Skip to content

Commit fa917f6

Browse files
author
MarcoFalke
committed
[contrib] verifybinaries: Keep downloads by default
1 parent fab1f92 commit fa917f6

File tree

2 files changed

+14
-3
lines changed

2 files changed

+14
-3
lines changed

contrib/verifybinaries/README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,9 @@ Usage:
1212
./verify.sh bitcoin-core-0.12.0
1313
./verify.sh bitcoin-core-0.13.0-rc3
1414
```
15+
16+
If you do not want to keep the downloaded binaries, specify anything as the second parameter.
17+
18+
```sh
19+
./verify.sh bitcoin-core-0.13.0 delete
20+
```

contrib/verifybinaries/verify.sh

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -108,11 +108,16 @@ if [ $? -eq 1 ]; then
108108
exit 1
109109
elif [ $? -gt 1 ]; then
110110
echo "Error executing 'diff'"
111-
exit 2
111+
exit 2
112112
fi
113113

114-
#everything matches! clean up the mess
115-
clean_up $FILES $SIGNATUREFILENAME $TMPFILE
114+
if [ -n "$2" ]; then
115+
echo "Clean up the binaries"
116+
clean_up $FILES $SIGNATUREFILENAME $TMPFILE
117+
else
118+
echo "Keep the binaries in $WORKINGDIR"
119+
clean_up $TMPFILE
120+
fi
116121

117122
echo -e "Verified hashes of \n$FILES"
118123

0 commit comments

Comments
 (0)