summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xci/cleanmaas.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/ci/cleanmaas.sh b/ci/cleanmaas.sh
index 40961359..41a74196 100755
--- a/ci/cleanmaas.sh
+++ b/ci/cleanmaas.sh
@@ -2,7 +2,7 @@
set -ex
-maasver=$(apt-cache policy maas | grep Installed | cut -d ':' -f 2 | sed -e 's/^.*: //')
+maasver=$(apt-cache policy maas | grep Installed | cut -d ':' -f 2 | sed -e 's/^[ ]*//')
if [[ "$maasver" > "2" ]]; then
echo "removing existing maas ..."