From e4970aa37d498f90586dfabc3162b5183e79b505 Mon Sep 17 00:00:00 2001
From: Sreejith Punnapuzha <Sreejith.Punnapuzha@outlook.com>
Date: Thu, 25 Mar 2021 15:00:05 -0500
Subject: [PATCH] Add permission to home folder in pip installation

Pip installation of package with sudo will fail because of permission
issues in home folder. Adding -H option to sudo to fix this.

Signed-off-by: Sreejith Punnapuzha <Sreejith.Punnapuzha@outlook.com>
Change-Id: I60222b300591aecdbd5e27a0bb86c1c62daca289
---
 tools/deployment/provider_common/04_install_yq.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/deployment/provider_common/04_install_yq.sh b/tools/deployment/provider_common/04_install_yq.sh
index 3a613b26e..4b795cce4 100755
--- a/tools/deployment/provider_common/04_install_yq.sh
+++ b/tools/deployment/provider_common/04_install_yq.sh
@@ -12,4 +12,4 @@
 # limitations under the License.
 set -ex
 
-sudo pip3 install yq
+sudo -H pip3 install yq