Adds fedora derivatives support

This commit is contained in:
José Roberto Sánchez
2022-10-24 23:31:23 -06:00
committed by GitHub
parent 8ddd22eac5
commit 1117869e97

View File

@@ -31,9 +31,15 @@ installDepend(){
## Check for dependencies.
DEPENDENCIES='autojump bash bash-completion'
echo -e "${YELLOW}Installing dependencies...${RC}"
sudo dpkg --configure -a
sudo apt-get install -fyq ${DEPENDENCIES}
sudo dpkg --configure -a
if [[ -x "/usr/bin/apt-get" ]]; then
sudo dpkg --configure -a
sudo apt-get install -fyq ${DEPENDENCIES}
sudo dpkg --configure -a
elif [[ -x "/usr/bin/yum" ]]; then
sudo yum install -fyq ${DEPENDENCIES}
else
echo "Can't check the package manager to use"
fi
}
installStarship(){