Replace `` cmd substitution with $() 20/54620/1
authorJamo Luhrsen <jluhrsen@redhat.com>
Mon, 10 Apr 2017 21:00:27 +0000 (14:00 -0700)
committerJamo Luhrsen <jluhrsen@redhat.com>
Mon, 10 Apr 2017 21:00:27 +0000 (14:00 -0700)
Change-Id: If95c628f524b25adcc6260951bd93c794eb0fae3
Signed-off-by: Jamo Luhrsen <jluhrsen@redhat.com>
jjb/integration/include-raw-integration-get-bundle-vars.sh

index 6b57c40272c8262ae5a7e4d9524b41f91de19928..b65eb4abb1dab40a1f192cdc0c5116a4a003c7e7 100644 (file)
@@ -11,13 +11,13 @@ if [ ${BUNDLEURL} == 'last' ]; then
     # Obtain current pom.xml of integration/distribution, correct branch.
     wget "http://${GERRIT_PATH}/gitweb?p=integration/distribution.git;a=blob_plain;f=pom.xml;hb=refs/heads/$DISTROBRANCH" -O "pom.xml"
     # Extract the BUNDLEVERSION from the pom.xml
-    BUNDLEVERSION=`xpath pom.xml '/project/version/text()' 2> /dev/null`
+    BUNDLEVERSION=$(xpath pom.xml '/project/version/text()' 2> /dev/null)
     echo "Bundle version is ${BUNDLEVERSION}"
     # Acquire the timestamp information from maven-metadata.xml
     NEXUSPATH="${NEXUSURL_PREFIX}/${ODL_NEXUS_REPO}/org/opendaylight/integration/distribution-karaf"
     wget ${NEXUSPATH}/${BUNDLEVERSION}/maven-metadata.xml
     less maven-metadata.xml
-    TIMESTAMP=`xpath maven-metadata.xml "//snapshotVersion[extension='zip'][1]/value/text()" 2>/dev/null`
+    TIMESTAMP=$(xpath maven-metadata.xml "//snapshotVersion[extension='zip'][1]/value/text()" 2>/dev/null)
     echo "Nexus timestamp is ${TIMESTAMP}"
     BUNDLEFOLDER="distribution-karaf-${BUNDLEVERSION}"
     BUNDLE="distribution-karaf-${TIMESTAMP}.zip"