From dfda04bf301ed35558853651d9c0edc48913d16d Mon Sep 17 00:00:00 2001 From: Nicholas Anderson Date: Thu, 27 Oct 2022 00:55:36 -0700 Subject: [PATCH] changed for fedora --- setup.sh | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/setup.sh b/setup.sh index 86a778a..73a935e 100755 --- a/setup.sh +++ b/setup.sh @@ -14,14 +14,14 @@ checkEnv(){ fi ## Check for requirements. - REQUIREMENTS='curl apt groups sudo' + REQUIREMENTS='curl dnf groups sudo' if ! which ${REQUIREMENTS}>/dev/null;then echo -e "${RED}To run me, you need: ${REQUIREMENTS}${RC}" exit 1 fi ## Check if member of the sudo group. - if ! groups|grep sudo>/dev/null;then + if ! groups|grep wheel>/dev/null;then echo -e "${RED}You need to be a member of the sudo group to run me!" exit 1 fi @@ -31,13 +31,11 @@ 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 + sudo dnf install -yq ${DEPENDENCIES} } installStarship(){ - if ! curl -sS https://starship.rs/install.sh|sh;then + if ! curl -sS https://starship.rs/install.sh|sudo sh;then echo -e "${RED}Something went wrong during starship install!${RC}" exit 1 fi