BharathKumarRaju DasaraRaju
asked on
what is the use of set -e inside shell script
What set -e dose in this shell script.
set -e
set -e
#!/usr/bin/env sh
ANSIBLE_ROOT=${ANSIBLE_ROOT:-~/ansible}
scl enable python27 bash <<!
set -e
export https_proxy=https://10.198.140.122:8080
if [ ! -d "$ANSIBLE_ROOT/bin" ]
then
virtualenv "$ANSIBLE_ROOT"
. "$ANSIBLE_ROOT/bin/activate"
echo "Installing latest version of ansible"
pip install ansible -i https://artifactory.global.raju.com/artif4actory/api/pypi/pypi-release/simple
pip install docker-py -i https://artifactory.global.raju.com/artifactory/api/pypi/pypi-release/simple
pip install docker-compose==1.15.0 -i https://artifactory.global.raju.com/artifactory/api/pypi/pypi-release/simple
deactivate
fi
!
SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
ASKER CERTIFIED SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
ASKER