From 32a8f4952592a8fb3026f230d104d1a9d58c6c8e Mon Sep 17 00:00:00 2001 From: Noah Hilverling <noah.hilverling@icinga.com> Date: Tue, 22 Jun 2021 09:48:56 +0000 Subject: [PATCH] icinga-provide-go: Use "/home/build" instead of "$HOME" (which resulted in "/root") --- icinga-provide-go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/icinga-provide-go b/icinga-provide-go index f4d5141..faa2f96 100755 --- a/icinga-provide-go +++ b/icinga-provide-go @@ -16,11 +16,11 @@ echo "Deleting Go Binary Archive" rm -rf go${VERSION_GO}.linux-amd64.tar.gz -if [[ ! -e "$HOME"/.bashrc ]]; then - touch "$HOME"/.bashrc +if [[ ! -e /home/build/.bashrc ]]; then + touch /home/build/.bashrc fi -echo "export PATH=$PATH:/usr/local/go/bin" >> "$HOME"/.bashrc +echo "export PATH=$PATH:/usr/local/go/bin" >> /home/build/.bashrc # shellcheck disable=SC1091 -source "$HOME"/.bashrc +source /home/build/.bashrc -- GitLab