From eec092b920e87aa4a31d81d0d3020047be4c97ec Mon Sep 17 00:00:00 2001 From: Vishvananda Ishaya Date: Mon, 31 Oct 2011 11:15:05 -0700 Subject: [PATCH 1/2] allow oneiric without FORCE=yes --- stack.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stack.sh b/stack.sh index 7511991..dfd2bdf 100755 --- a/stack.sh +++ b/stack.sh @@ -22,7 +22,7 @@ # Warn users who aren't on natty, but allow them to override check and attempt # installation with ``FORCE=yes ./stack`` -if ! grep -q natty /etc/lsb-release; then +if ! egrep -q 'natty|oneiric' /etc/lsb-release; then echo "WARNING: this script has only been tested on natty" if [[ "$FORCE" != "yes" ]]; then echo "If you wish to run this script anyway run with FORCE=yes" From d80e380675a3b9bf003d8858a3776981df427f43 Mon Sep 17 00:00:00 2001 From: Vishvananda Ishaya Date: Mon, 31 Oct 2011 13:31:19 -0700 Subject: [PATCH 2/2] fix warning line to include oneiric as well --- stack.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stack.sh b/stack.sh index dfd2bdf..9466512 100755 --- a/stack.sh +++ b/stack.sh @@ -23,7 +23,7 @@ # Warn users who aren't on natty, but allow them to override check and attempt # installation with ``FORCE=yes ./stack`` if ! egrep -q 'natty|oneiric' /etc/lsb-release; then - echo "WARNING: this script has only been tested on natty" + echo "WARNING: this script has only been tested on natty and oneiric" if [[ "$FORCE" != "yes" ]]; then echo "If you wish to run this script anyway run with FORCE=yes" exit 1