We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4018e23 commit 7bb8eb0Copy full SHA for 7bb8eb0
contrib/install_db4.sh
@@ -1,5 +1,5 @@
1
#!/bin/sh
2
-# Copyright (c) 2017-2019 The Bitcoin Core developers
+# Copyright (c) 2017-2021 The Bitcoin Core developers
3
# Distributed under the MIT software license, see the accompanying
4
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
5
@@ -62,6 +62,12 @@ http_get() {
62
sha256_check "${3}" "${2}"
63
}
64
65
+# Ensure the commands we use exist on the system
66
+if ! check_exists patch; then
67
+ echo "Command-line tool 'patch' not found. Install patch and try again."
68
+ exit 1
69
+fi
70
+
71
mkdir -p "${BDB_PREFIX}"
72
http_get "${BDB_URL}" "${BDB_VERSION}.tar.gz" "${BDB_HASH}"
73
tar -xzvf ${BDB_VERSION}.tar.gz -C "$BDB_PREFIX"
0 commit comments