contrib: add check for wget command in install_db4.sh
This commit is contained in:
1 parent
0b30bdd519
commit
b062da0090
1 file changed
+5
-2
@@ -55,8 +55,11 @@ http_get() {
|
|||||||
echo "File ${2} already exists; not downloading again"
|
echo "File ${2} already exists; not downloading again"
|
||||||
elif check_exists curl; then
|
elif check_exists curl; then
|
||||||
curl --insecure --retry 5 "${1}" -o "${2}"
|
curl --insecure --retry 5 "${1}" -o "${2}"
|
||||||
else
|
elif check_exists wget; then
|
||||||
wget --no-check-certificate "${1}" -O "${2}"
|
wget --no-check-certificate "${1}" -O "${2}"
|
||||||
|
else
|
||||||
|
echo "Simple transfer utilities 'curl' and 'wget' not found. Please install one of them and try again."
|
||||||
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
sha256_check "${3}" "${2}"
|
sha256_check "${3}" "${2}"
|
||||||
@@ -64,7 +67,7 @@ http_get() {
|
|||||||
|
|
||||||
# Ensure the commands we use exist on the system
|
# Ensure the commands we use exist on the system
|
||||||
if ! check_exists patch; then
|
if ! check_exists patch; then
|
||||||
echo "Command-line tool 'patch' not found. Install patch and try again."
|
echo "Command-line tool 'patch' not found. Install patch and try again."
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user