fixed usage of scl_source
@@ -65,7 +65,11 @@ if [[ ( $os_name == *"Red Hat"* || $os_name == *"CentOS"* ) && $os_version == *
autoreconf -f -i
make
cd $foglamp_location
- sudo -u $SUDO_USER scl enable rh-python36 bash
+
+ # To avoid to stop the execution for any internal error of scl_source
+ set +e
+ source scl_source enable rh-python36
+ set -e
#
# A gcc version newer than 4.9.0 is needed to properly use <regex>
@@ -76,7 +80,10 @@ if [[ ( $os_name == *"Red Hat"* || $os_name == *"CentOS"* ) && $os_version == *
sudo yum-config-manager --enable rhel-server-rhscl-7-rpms
sudo yum install -y devtoolset-7
+ # To avoid to stop the execution for any internal error of scl_source
+ set +e
source scl_source enable devtoolset-7
+ set -e
elif apt --version 2>/dev/null; then
apt install -y avahi-daemon curl
