summaryrefslogtreecommitdiffstats
path: root/dgbuilder/tools/format_xml.sh
diff options
context:
space:
mode:
authorMiroslav Los <miroslav.los@pantheon.tech>2019-11-13 11:15:40 +0100
committerTimoney, Dan (dt5972) <dtimoney@att.com>2019-12-13 09:33:42 -0500
commitfc4bb348c8a8b4a5d5f77065b8ebbca16d6ce5b8 (patch)
treec4b37c969be7a4d644cd5d30c52fa1b085eea5d6 /dgbuilder/tools/format_xml.sh
parent4ec03269604e3bd897207552127f94b4d1f30850 (diff)
Update distribution scripts to python3
Also use python3 packages in Dockerfiles. Make python2 also available for OpenDaylight until they migrate Signed-off-by: Miroslav Los <miroslav.los@pantheon.tech> Issue-ID: CCSDK-1923 Change-Id: I3d4453ccbfe191c545ba574695387dd33c129e25
Diffstat (limited to 'dgbuilder/tools/format_xml.sh')
-rwxr-xr-xdgbuilder/tools/format_xml.sh5
1 files changed, 3 insertions, 2 deletions
diff --git a/dgbuilder/tools/format_xml.sh b/dgbuilder/tools/format_xml.sh
index c66153ed..fbe368e1 100755
--- a/dgbuilder/tools/format_xml.sh
+++ b/dgbuilder/tools/format_xml.sh
@@ -1,3 +1,4 @@
+#!/bin/bash
if [ "$#" != "1" ]
then
echo "Usage: $0 xmlFileFullPath"
@@ -10,7 +11,7 @@ then
fi
if [ -e "$1" ]
then
- python $PROJECT_HOME/tools/formatXml.py $1
+ python3 $PROJECT_HOME/tools/formatXml.py "$1"
else
- echo "File $1 does not exist"
+ echo "File $1 does not exist"
fi