Fix clean maas issue 57/33557/1
authorGuo Ruijing <ruijing.guo@intel.com>
Wed, 19 Apr 2017 16:24:20 +0000 (00:24 +0800)
committerGuo Ruijing <ruijing.guo@intel.com>
Wed, 19 Apr 2017 16:25:06 +0000 (00:25 +0800)
Change-Id: Iea000e7740185c08c87f2c94853a344d759166c4
Signed-off-by: Guo Ruijing <ruijing.guo@intel.com>
ci/cleanmaas.sh

index 4096135..41a7419 100755 (executable)
@@ -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 ..."