A local/global variable mixup fixed

This commit is contained in:
fedora 2019-05-15 06:57:28 +02:00
parent 317c202084
commit 285a14c433
Signed by: wanderer
GPG Key ID: 7B28D8DC28BD2388

@ -57,6 +57,7 @@ unsetVars() {
unset OVER unset OVER
unset NP_USR unset NP_USR
unset pkgmgr unset pkgmgr
unset relll
} }
introduction() { introduction() {
@ -80,7 +81,7 @@ introduction() {
# first, let's check it's Fedora we're running on... # first, let's check it's Fedora we're running on...
isFedora() { isFedora() {
local relll="/etc/redhat-release" export relll="/etc/redhat-release"
if [ ! -f "$relll" ]; then if [ ! -f "$relll" ]; then
echo -e " ${CROSS} only ${COL_LIGHT_BLUE}Fedora/CentOS are supported${COL_NC} at the moment, exiting..." echo -e " ${CROSS} only ${COL_LIGHT_BLUE}Fedora/CentOS are supported${COL_NC} at the moment, exiting..."
unsetVars && exit 9807362 unsetVars && exit 9807362