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