support arch based OS manjaro

This commit is contained in:
Henry Chen 2023-01-10 16:02:41 +08:00
parent 45c2b846fd
commit 1cb7bb73d1
2 changed files with 4 additions and 1 deletions

View File

@ -72,7 +72,7 @@ elif [ "$OS" = "CentOS" ] || [ "$OS" = "RedHat" ] || [ "${UPSTREAM_ID}" = "rhe
# || [ "${UPSTREAM_ID}" = "suse" ]
sudo yum update -y
sudo yum install -y ${PREREQ} ${PREREQRPM} # git
elif [ "${ID}" = "arch" ]; then
elif [ "${ID}" = "arch" ] || [ "${ID}" = "manjaro" ]; then
sudo pacman -Syu
sudo pacman -S ${PREREQ} ${PREREQARCH}
else

View File

@ -73,6 +73,9 @@ elif [ "$OS" = "CentOS" ] || [ "$OS" = "RedHat" ] || [ "${UPSTREAM_ID}" = "rhe
# || [ "${UPSTREAM_ID}" = "suse" ]
sudo yum update -y
sudo yum install -y ${PREREQ} ${PREREQRPM} # git
elif [ "${ID}" = "arch" ] || [ "${ID}" = "manjaro" ]; then
sudo pacman -Syu
sudo pacman -S ${PREREQ} ${PREREQARCH}
else
echo "Unsupported OS"
# here you could ask the user for permission to try and install anyway