This commit is contained in:
parent
79a724e837
commit
f0ea8e746d
15
configure
vendored
15
configure
vendored
@ -3,14 +3,23 @@
|
||||
# Function to install libmagic-dev on Debian-based distros
|
||||
install_debian() {
|
||||
echo "Detected Debian-based distro. Installing libmagic-dev..."
|
||||
sudo apt-get update
|
||||
sudo apt-get install -y libmagic-dev
|
||||
if [ "$EUID" -ne 0 ]
|
||||
sudo apt-get update
|
||||
sudo apt-get install -y libmagic-dev
|
||||
else
|
||||
apt-get update
|
||||
apt-get install -y libmagic-dev
|
||||
fi
|
||||
}
|
||||
|
||||
# Function to install file-devel on Red Hat-based distros
|
||||
install_redhat() {
|
||||
echo "Detected Red Hat-based distro. Installing file-devel..."
|
||||
sudo yum install -y file-devel
|
||||
if [ "$EUID" -ne 0 ]
|
||||
sudo yum install -y file-devel
|
||||
else
|
||||
yum install -y file-devel
|
||||
fi
|
||||
}
|
||||
|
||||
# Function to install libmagic on Arch-based distros
|
||||
|
Loading…
Reference in New Issue
Block a user