From 285a14c433e1ae038842cf24c49b92a47f49015a Mon Sep 17 00:00:00 2001 From: fedora Date: Wed, 15 May 2019 06:57:28 +0200 Subject: [PATCH] A local/global variable mixup fixed --- setup-env/EASetup.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/setup-env/EASetup.sh b/setup-env/EASetup.sh index 9f5f092..a2d60c7 100644 --- a/setup-env/EASetup.sh +++ b/setup-env/EASetup.sh @@ -57,6 +57,7 @@ unsetVars() { unset OVER unset NP_USR unset pkgmgr + unset relll } introduction() { @@ -80,7 +81,7 @@ introduction() { # first, let's check it's Fedora we're running on... isFedora() { - local relll="/etc/redhat-release" + export relll="/etc/redhat-release" if [ ! -f "$relll" ]; then echo -e " ${CROSS} only ${COL_LIGHT_BLUE}Fedora/CentOS are supported${COL_NC} at the moment, exiting..." unsetVars && exit 9807362