changed to use apt-get and moved apt-get update to below if so it dont do unnecessary update

This commit is contained in:
Chris Caplan 2021-03-06 19:45:16 +00:00
parent 5a8f05000c
commit d8ea0322f9

View File

@ -2,7 +2,7 @@
echo "*** AWSCLI Installer ***"
echo "Checking if awscli is installed"
apt update
if ! aws -v COMMAND &> /dev/null; then
echo "aws not installed, installing now..."
@ -10,7 +10,8 @@ if ! aws -v COMMAND &> /dev/null; then
if ! pip -v COMMAND &> /dev/null
then
echo "pip3 not installed, installing now..."
apt install python3 python3-pip -y
apt-get update
apt-get install python3 python3-pip -y
pip3 install awscli
fi