This is to avoid confusion with global variable BUNDLE_URL.
Change-Id: I1a22f8e627424bb8d8f629f69bbefd9e1e5c1744
Signed-off-by: Luis Gomez <ecelgp@gmail.com>
BUNDLEVERSION="$(xpath distribution/pom.xml '/project/version/text()' 2> /dev/null)"
BUNDLEFOLDER="${KARAF_ARTIFACT}-${BUNDLEVERSION}"
BUNDLE="${BUNDLEFOLDER}.zip"
-BUNDLE_URL="/tmp/r/org/opendaylight/integration/${KARAF_ARTIFACT}/${BUNDLEVERSION}/${BUNDLE}"
+BUNDLE_PATH="/tmp/r/org/opendaylight/integration/${KARAF_ARTIFACT}/${BUNDLEVERSION}/${BUNDLE}"
echo "Kill any controller running"
ps axf | grep karaf | grep -v grep | awk '{print "kill -9 " $1}' | sh
rm -rf *
echo "Copying the distribution..."
-cp "${BUNDLE_URL}" .
+cp "${BUNDLE_PATH}" .
echo "Extracting the new controller..."
unzip -q "${BUNDLE}"