Condidionals change in easetup.sh

This commit is contained in:
fedora 2019-05-15 06:41:28 +02:00
parent 6f6c7f53a8
commit ded4430b3e
Signed by: wanderer
GPG Key ID: 7B28D8DC28BD2388

@ -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
}