added automatical confirm (when installing) to configuration script

it was annoying af
This commit is contained in:
Václav Šmejkal 2022-06-11 16:37:07 +02:00
parent 5502ee67c8
commit b499bba382
No known key found for this signature in database
GPG Key ID: FD749A97DF2D5E19

View File

@ -10,9 +10,9 @@ fi
# Get COMMAND
if [[ $DISTRO == "Arch" ]]; then
COMMAND="pacman -S --needed gcc json-c curl make libgit2"
COMMAND="pacman -S --needed --noconfirm gcc json-c curl make libgit2"
elif [[ $DISTRO == "Ubuntu" ]] || [[ $DISTRO == "Debian" ]]; then
COMMAND="apt install gcc libjson-c-dev libcurl4-nss-dev make libgit2-dev"
COMMAND="apt install -y gcc libjson-c-dev libcurl4-nss-dev make libgit2-dev"
else
# 'Unsupported' distro
echo "It seems you are using unsupported distribution... Don't worry, just install 'gcc', 'json-c', 'curl' and 'make' and you'll be fine."