From: Guo Ruijing Date: Wed, 19 Apr 2017 16:24:20 +0000 (+0800) Subject: Fix clean maas issue X-Git-Tag: opnfv-5.0.RC1~140 X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=commitdiff_plain;h=cf2569ec9e06c27ee7332a026acc1fb30cf3326e;p=joid.git Fix clean maas issue Change-Id: Iea000e7740185c08c87f2c94853a344d759166c4 Signed-off-by: Guo Ruijing --- 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 ..."