Use login flag to get $HOME/.local/bin on path 34/334/1
authorLott, Christopher (cl778h) <cl778h@att.com>
Thu, 13 Jun 2019 02:12:06 +0000 (22:12 -0400)
committerLott, Christopher (cl778h) <cl778h@att.com>
Thu, 13 Jun 2019 02:12:06 +0000 (22:12 -0400)
pip installs yq to $HOME/.local/bin

Signed-off-by: Lott, Christopher (cl778h) <cl778h@att.com>
Change-Id: I8d689e052239876eabf538be77b37dc6c6c229fc

jjb/ric-plt-lib-rmr/shell/copy-rmr-packages.sh

index 5121abf..78caaea 100755 (executable)
@@ -1,4 +1,6 @@
-#!/bin/bash
+#!/bin/bash -l
+# use login flag to get $HOME/.local/bin in PATH
+
 #==================================================================================
 #       Copyright (c) 2019 Nokia
 #       Copyright (c) 2018-2019 AT&T Intellectual Property.
@@ -20,7 +22,6 @@ set -eux -o pipefail
 echo "--> copy-rmr-packages.sh"
 
 # extracts artifacts created by the builder
-
 # file with paths of generated deb, rpm packages
 pkgs="/tmp/build_output.yml"
 
@@ -30,6 +31,7 @@ container=$(docker run -d "$CONTAINER_PUSH_REGISTRY"/"$DOCKER_NAME":"$DOCKER_IMA
 docker cp "$container":"$pkgs" .
 pkgs_base=$(basename "$pkgs")
 
+# pip installs yq to $HOME/.local/bin
 deb=$(yq -r .deb "$pkgs_base")
 docker cp "$container":"$deb" .
 deb_base=$(basename "$deb")