included curl

This commit is contained in:
Václav Šmejkal 2022-04-06 19:05:21 +02:00 committed by GitHub
parent bfb9c6f46b
commit 785e63df8b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -5,9 +5,9 @@ DISTRO=$(lsb_release -is)
# Get COMMAND
if [[ $DISTRO == "Arch" ]]; then
COMMAND="sudo pacman -S --needed json-c"
COMMAND="sudo pacman -S --needed json-c && sudo pacman -S --needed curl"
elif [[ $DISTRO == "Ubuntu" ]] || [[ $DISTRO == "Debian" ]]; then
COMMAND="sudo apt install libjson-c3"
COMMAND="sudo apt install libjson-c3 && sudo apt install curl"
else
# 'Unsupported' distro
echo "It seems you are using unsupported distribution... Don't worry, just install https://github.com/json-c/json-c and you'll be fine."