summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDileep Ranganathan <dileep.ranganathan@intel.com>2018-07-30 15:50:12 -0700
committerDileep Ranganathan <dileep.ranganathan@intel.com>2018-07-30 15:50:12 -0700
commitfd43ca256b21606c64d1463a3cd024fbf73b4a54 (patch)
treee9b3d91d50d76ec672485ec47006712b2876b6da
parent4b3243c48fb977e7a4c4dd1d420ba45e47803e7d (diff)
Added missing sudo privileges
Added the missing sudo privilieges required to install packages Change-Id: I998decc0f8a20cc6575564c12f7e0dcb278802a5 Issue-ID: OPTFRA-301 Signed-off-by: Dileep Ranganathan <dileep.ranganathan@intel.com>
-rwxr-xr-xbuild-dockers.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/build-dockers.sh b/build-dockers.sh
index 91a2e09..0b02b32 100755
--- a/build-dockers.sh
+++ b/build-dockers.sh
@@ -33,7 +33,7 @@ function log_ts() { # Log message with timestamp
function get_artifact_version() {
log_ts Get Maven Artifact version from pom.xml
- apt-get install libxml2-utils
+ sudo apt-get install libxml2-utils
MVN_ARTIFACT_VERSION=`echo -e "setns x=http://maven.apache.org/POM/4.0.0 \n xpath /x:project/x:version/text() "| xmllint --shell conductor/pom.xml | grep content | sed 's/.*content=//'`
log_ts Maven artifact version for HAS is $MVN_ARTIFACT_VERSION
if [[ "$MVN_ARTIFACT_VERSION" =~ SNAPSHOT ]]; then