errexit for build_kvm.sh
This commit is contained in:
parent
1369c05f9b
commit
4b8ab92ebb
1 changed files with 3 additions and 0 deletions
|
@ -1,5 +1,8 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
# exit on error to stop unexpected errors
|
||||||
|
set -o errexit
|
||||||
|
|
||||||
# Make sure that we have the proper version of ubuntu
|
# Make sure that we have the proper version of ubuntu
|
||||||
UBUNTU_VERSION=`cat /etc/lsb-release | grep CODENAME | sed 's/.*=//g'`
|
UBUNTU_VERSION=`cat /etc/lsb-release | grep CODENAME | sed 's/.*=//g'`
|
||||||
if [ ! "oneiric" = "$UBUNTU_VERSION" ]; then
|
if [ ! "oneiric" = "$UBUNTU_VERSION" ]; then
|
||||||
|
|
Loading…
Reference in a new issue