From e6872c27b7d526f3f2c518371d39cf29a5c64a5b Mon Sep 17 00:00:00 2001 From: Francesco Maria Cultrera Date: Sat, 14 Oct 2023 08:04:01 +0000 Subject: [PATCH] use remote user in krew --- src/krew/install.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/krew/install.sh b/src/krew/install.sh index 5067b1a..34b8faa 100644 --- a/src/krew/install.sh +++ b/src/krew/install.sh @@ -5,6 +5,9 @@ echo "-------------------------------------------------------------------------- printenv echo "------------------------------------------------------------------------------------------------------------------------------------" +if [ -n "$_REMOTE_USER" ]; then + su - $_REMOTE_USER +fi . ./library_scripts.sh