From ded4430b3ee6485763b7c26350173904156b0bc0 Mon Sep 17 00:00:00 2001 From: fedora Date: Wed, 15 May 2019 06:41:28 +0200 Subject: [PATCH] Condidionals change in easetup.sh --- setup-env/EASetup.sh | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/setup-env/EASetup.sh b/setup-env/EASetup.sh index 5afe0da..4bf0aa9 100644 --- a/setup-env/EASetup.sh +++ b/setup-env/EASetup.sh @@ -109,18 +109,22 @@ wineRepos() { export pkgmgr=dnf $pkgmgr clean all $pkgmgr config-manager --add-repo https://dl.winehq.org/wine-builds/fedora/30/winehq.repo + if [ `echo $?` -ne 0 ]; then + echo -e " ${CROSS} failed to register winehq repository, aborting..." + unsetVars && exit 1 + fi elif grep -iq 'centos' $relll ; then export pkgmgr=yum yum clean metadata rpm -Uhv https://dl.winehq.org/wine-builds/fedora/30/winehq.repo + if [ `echo $?` -ne 0 ]; then + echo -e " ${CROSS} failed to register winehq repository, aborting..." + unsetVars && exit 1 + fi fi - if [ `echo $?` -ne 0 ]; then - echo -e " ${CROSS} failed to register winehq repository, aborting..." - unsetVars && exit 1 - else - echo -e " ${TICK} winehq repository successfully registered" - echo - fi + + echo -e " ${TICK} winehq repository successfully registered" + echo }