created script for installing json-c
This commit is contained in:
parent
4734b8c5f0
commit
5210f84754
17
configure.sh
Normal file
17
configure.sh
Normal file
@ -0,0 +1,17 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Get linux distro
|
||||
DISTRO=$(lsb_release -is)
|
||||
|
||||
# Get COMMAND
|
||||
if [[ $DISTRO == "Arch" ]]; then
|
||||
COMMAND="sudo pacman -S --needed json-c"
|
||||
elif [[ $DISTRO == "Ubuntu" ]] || [[ $DISTRO == "Debian" ]]; then
|
||||
COMMAND="sudo apt install libjson-c3"
|
||||
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."
|
||||
fi
|
||||
|
||||
# Execute COMMAND
|
||||
$COMMAND
|
Loading…
x
Reference in New Issue
Block a user