Skip to content

Commit 8c3d792

Browse files
committed
Add a validation if curl is already installed, if not, do it.
1 parent ce5f4b8 commit 8c3d792

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

install/hst-install-debian.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -324,6 +324,13 @@ if [ ! -e '/usr/bin/wget' ]; then
324324
check_result $? "Can't install wget"
325325
fi
326326

327+
# Checking curl
328+
if [ ! -e '/usr/bin/curl' ]; then
329+
echo "[ * ] Installing curl..."
330+
apt-get -y install curl >> $LOG
331+
check_result $? "Can't install curl"
332+
fi
333+
327334
# Checking dirmngr
328335
if [ ! -e '/usr/bin/dirmngr' ]; then
329336
echo "[ * ] Installing dirmngr..."

install/hst-install-ubuntu.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -306,6 +306,13 @@ if [ ! -e '/usr/bin/wget' ]; then
306306
check_result $? "Can't install wget"
307307
fi
308308

309+
# Checking curl
310+
if [ ! -e '/usr/bin/curl' ]; then
311+
echo "[ * ] Installing curl..."
312+
apt-get -y install curl >> $LOG
313+
check_result $? "Can't install curl"
314+
fi
315+
309316
# Check if apt-transport-https is installed
310317
if [ ! -e '/usr/lib/apt/methods/https' ]; then
311318
echo "[ * ] Installing apt-transport-https..."

0 commit comments

Comments
 (0)