Skip to content

Commit b062da0

Browse files
authored
contrib: add check for wget command in install_db4.sh
1 parent 0b30bdd commit b062da0

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

contrib/install_db4.sh

+5-2
Original file line numberDiff line numberDiff line change
@@ -55,16 +55,19 @@ http_get() {
5555
echo "File ${2} already exists; not downloading again"
5656
elif check_exists curl; then
5757
curl --insecure --retry 5 "${1}" -o "${2}"
58-
else
58+
elif check_exists wget; then
5959
wget --no-check-certificate "${1}" -O "${2}"
60+
else
61+
echo "Simple transfer utilities 'curl' and 'wget' not found. Please install one of them and try again."
62+
exit 1
6063
fi
6164

6265
sha256_check "${3}" "${2}"
6366
}
6467

6568
# Ensure the commands we use exist on the system
6669
if ! check_exists patch; then
67-
echo "Command-line tool 'patch' not found. Install patch and try again."
70+
echo "Command-line tool 'patch' not found. Install patch and try again."
6871
exit 1
6972
fi
7073

0 commit comments

Comments
 (0)