We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent aa4aa2e commit adfc029Copy full SHA for adfc029
stack.sh
@@ -22,7 +22,9 @@
22
23
# Warn users who aren't on natty, but allow them to override check and attempt
24
# installation with ``FORCE=yes ./stack``
25
-if ! egrep -q 'natty|oneiric' /etc/lsb-release; then
+DISTRO=$(lsb_release -c -s)
26
+
27
+if [[ ! ${DISTRO} =~ (natty|oneiric) ]]; then
28
echo "WARNING: this script has only been tested on natty and oneiric"
29
if [[ "$FORCE" != "yes" ]]; then
30
echo "If you wish to run this script anyway run with FORCE=yes"
0 commit comments