From cf2569ec9e06c27ee7332a026acc1fb30cf3326e Mon Sep 17 00:00:00 2001 From: Guo Ruijing Date: Thu, 20 Apr 2017 00:24:20 +0800 Subject: [PATCH] Fix clean maas issue Change-Id: Iea000e7740185c08c87f2c94853a344d759166c4 Signed-off-by: Guo Ruijing --- ci/cleanmaas.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ..." -- 2.16.6