This commit is contained in:
Your Name 2025-05-01 21:22:08 +12:00
parent 35d3df0685
commit 9f9dd4b6e3

View File

@ -26,14 +26,9 @@ attempt_install_prerequisite() {
# separate install for each prerequisite
case "${prerequisite}" in
"bash")
$SUDO_CMD apt-get install -y bash
;;
"curl")
$SUDO_CMD apt-get install -y curl
;;
"wget")
$SUDO_CMD apt-get install -y wget
bash|curl|wget)
$SUDO_CMD apt-get update
$SUDO_CMD apt-get install -y wget curl bash
;;
"docker")
# install docker using the official script.
@ -47,8 +42,11 @@ attempt_install_prerequisite() {
echo "Please install it manually and try again."
echo "--------------------------------"
exit 1
}
install_prerequisites() {]
esac
}
install_prerequisites() {
# this script works on debian, ubuntu and Raspberry Pi OS
# it checks the following prerequisites, and installs them if missing.
# if the user is root it proceeds, otherwise it checks for sudo privileges.