Skip to content

Commit

Permalink
install_package: add support for zypper
Browse files Browse the repository at this point in the history
  • Loading branch information
bwRavencl committed May 24, 2024
1 parent 77f3a65 commit c215cbc
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions InstallControllerBuddy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,9 @@ then
elif which pacman >/dev/null 2>/dev/null
then
sudo pacman -S --noconfirm "$3"
elif which zypper >/dev/null 2>/dev/null
then
sudo zypper --non-interactive install "$4"
else
false
fi
Expand Down Expand Up @@ -418,7 +421,7 @@ else
log 'Yes'
else
log 'No - installing cURL...'
install_package 'curl' 'curl' 'curl'
install_package 'curl' 'curl' 'curl' 'curl'
check_retval 'Error: Failed to install cURL. Please restart this script after installing cURL manually'
fi

Expand All @@ -428,7 +431,7 @@ else
log 'Yes'
else
log 'No - installing libSDL2...'
install_package 'libsdl2-2.0-0' 'SDL2' 'sdl2'
install_package 'libsdl2-2.0-0' 'SDL2' 'sdl2' 'SDL2'
check_retval 'Error: Failed to install libSDL2. Please restart this script after installing libSDL2 manually'
fi

Expand All @@ -438,7 +441,7 @@ else
log 'Yes'
else
log 'No - installing Git...'
install_package 'git' 'git' 'git'
install_package 'git' 'git' 'git' 'git'
check_retval 'Error: Failed to install Git. Please restart this script after installing Git manually'
fi

Expand Down

0 comments on commit c215cbc

Please sign in to comment.