summaryrefslogtreecommitdiffstats
path: root/ci/cleanmaas.sh
diff options
context:
space:
mode:
authorGuo Ruijing <ruijing.guo@intel.com>2017-04-20 00:24:20 +0800
committerGuo Ruijing <ruijing.guo@intel.com>2017-04-20 00:25:06 +0800
commitcf2569ec9e06c27ee7332a026acc1fb30cf3326e (patch)
tree40c007a78ce5e1e82671ff2e5375c7b370ac04a2 /ci/cleanmaas.sh
parentf817c710443ed6e96bae76a93538880ff2e37916 (diff)
Fix clean maas issue
Change-Id: Iea000e7740185c08c87f2c94853a344d759166c4 Signed-off-by: Guo Ruijing <ruijing.guo@intel.com>
Diffstat (limited to 'ci/cleanmaas.sh')
-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 ..."