Add $DISTRO = "CentOS"
to the rpm installation targets
complementing Fedora
Signed-off-by: Géza Gémes <geza.gemes@gmail.com>
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
if [[ $DISTRO = "Debian" ]]
then
$SUDO dpkg -i "$1".deb
- elif [[ $DISTRO = "Fedora" ]]
+ elif [[ $DISTRO = "Fedora" || $DISTRO = "CentOS" ]]
then
$SUDO rpm -i --force "$1"-`git show --oneline | head -1 | cut -d " " -f 1`-0.$RAISIN_ARCH.rpm
else
if [[ $DISTRO = "Debian" ]]
then
$SUDO dpkg -r "$1"
- elif [[ $DISTRO = "Fedora" ]]
+ elif [[ $DISTRO = "Fedora" || $DISTRO = "CentOS" ]]
then
$SUDO rpm -e "$1"
else