Condidionals change in easetup.sh
This commit is contained in:
parent
6f6c7f53a8
commit
ded4430b3e
@ -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
|
||||
fi
|
||||
if [ `echo $?` -ne 0 ]; then
|
||||
echo -e " ${CROSS} failed to register winehq repository, aborting..."
|
||||
unsetVars && exit 1
|
||||
else
|
||||
fi
|
||||
fi
|
||||
|
||||
echo -e " ${TICK} winehq repository successfully registered"
|
||||
echo
|
||||
fi
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user