Use login flag to get $HOME/.local/bin on path
pip installs yq to $HOME/.local/bin
Signed-off-by: Lott, Christopher (cl778h) <cl778h@att.com>
Change-Id: I8d689e052239876eabf538be77b37dc6c6c229fc
diff --git a/jjb/ric-plt-lib-rmr/shell/copy-rmr-packages.sh b/jjb/ric-plt-lib-rmr/shell/copy-rmr-packages.sh
index 5121abf..78caaea 100755
--- a/jjb/ric-plt-lib-rmr/shell/copy-rmr-packages.sh
+++ b/jjb/ric-plt-lib-rmr/shell/copy-rmr-packages.sh
@@ -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 @@
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 @@
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")