From c6d39996ac50874d3ad6be10187a168fd9220041 Mon Sep 17 00:00:00 2001 From: KATO Tomoyuki Date: Sat, 16 Apr 2016 10:34:48 +0900 Subject: [PATCH] [cli-ref] Support DeprecationWarning for version number Bash variable expansion "${version##* }" doesn't match the char ")" as "*". This patch add the process for "DeprecationWarning)" message. Change-Id: If8e7dd047ea5e12487dc90f5a0fb7aeb4292ae13 Closes-Bug: #1565574 --- bin/doc-tools-update-cli-reference | 1 + 1 file changed, 1 insertion(+) diff --git a/bin/doc-tools-update-cli-reference b/bin/doc-tools-update-cli-reference index 217c70f8..ff56384e 100755 --- a/bin/doc-tools-update-cli-reference +++ b/bin/doc-tools-update-cli-reference @@ -94,4 +94,5 @@ git branch --list $branch && git branch -D $branch git checkout -b $branch mv ../output/${project}.rst "doc/cli-reference/source" version=$($project --version 2>&1) +version=${version##*\)} git commit -a -m "[cli-ref] Update python-${project}client to ${version##* }"