Skip to content

Commit 23ef832

Browse files
committed
Adds pacman to install.sh
1 parent fa3aec2 commit 23ef832

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

install.sh

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,16 @@ else
3737
fi
3838
fi
3939
$SUDO yum groupinstall -y "Development Tools"
40-
else
40+
elif type pacman &>/dev/null;then
41+
echo " + On Linux / pacman. Installing apt packages."
42+
$SUDO pacman -Sy --noconfirm peg make cmake pandoc pkgconfig
43+
elif type apt &>/dev/null;then
4144
echo " + On Linux / apt. Installing apt packages."
4245
$SUDO apt-get install -y libgc-dev libffi-dev libjson-c-dev peg libpcre3-dev make cmake pandoc pkg-config build-essential
4346
type awk || $SUDO apt-get install -y gawk
47+
else
48+
echo "ERROR: No supported package manager found! Accepted package managers are: apt, yum and pacman. Open an issue in github if any other is required."
49+
exit 1
4450
fi
4551
fi
4652

0 commit comments

Comments
 (0)