| ... | ... |
@@ -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 |