diff --git a/icinga-go b/icinga-go index 6b4c299728a132eb39023b096d7c328fc4ada3aa..75aa4de9fe09ba6993c79ac9e5f456bac3fb4bd8 100755 --- a/icinga-go +++ b/icinga-go @@ -16,10 +16,11 @@ echo "Deleting Go Binary Archive" sudo rm -rf go${VERSION_GO}.linux-amd64.tar.gz -if [[ ! -e $HOME/.bashrc ]]; then - touch $HOME/.bashrc +if [[ ! -e "$HOME"/.bashrc ]]; then + touch "$HOME"/.bashrc fi -echo 'export PATH=$PATH:/usr/local/go/bin' >> $HOME/.bashrc +echo "export PATH=$PATH:/usr/local/go/bin" >> "$HOME"/.bashrc -source $HOME/.bashrc +# shellcheck disable=SC1091 +source "$HOME"/.bashrc