Browse code

now works with natty

Anthony Young authored on 2011/10/20 12:35:04
Showing 1 changed files
... ...
@@ -1,9 +1,12 @@
1 1
 #!/usr/bin/env bash
2 2
 
3
+# Make sure that we have the proper version of ubuntu
3 4
 UBUNTU_VERSION=`cat /etc/lsb-release | grep CODENAME | sed 's/.*=//g'`
4 5
 if [ ! "oneiric" = "$UBUNTU_VERSION" ]; then
5
-    echo "This script only works with oneiric"
6
-    exit 1
6
+    if [ ! "natty" = "$UBUNTU_VERSION" ]; then
7
+        echo "This script only works with oneiric and natty"
8
+        exit 1
9
+    fi
7 10
 fi
8 11
 
9 12
 # Echo commands