From 91c2ad9e57ef92564e129ec618c5d73d2acc71b2 Mon Sep 17 00:00:00 2001 From: Marco Vermeulen Date: Sat, 20 Oct 2012 12:27:41 +0100 Subject: [PATCH] Add EOF comment to snippet that is added to bash profile. --- srv/scripts/install.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/srv/scripts/install.sh b/srv/scripts/install.sh index 9359b3a3..07469e99 100755 --- a/srv/scripts/install.sh +++ b/srv/scripts/install.sh @@ -157,7 +157,13 @@ mkdir -p "$HOME/.gvm/gradle" echo "Attempting to update bash profile..." -SNIPPET='[[ -s "$HOME/.gvm/bin/gvm-init.sh" ]] && source "$HOME/.gvm/bin/gvm-init.sh"' + +SNIPPET=$( cat << EOF +#THIS MUST BE AT THE END OF THE FILE FOR GVM TO WORK!!! +[[ -s "$HOME/.gvm/bin/gvm-init.sh" ]] && source "$HOME/.gvm/bin/gvm-init.sh" +EOF +) + BASH_PROFILE="$HOME/.bash_profile" PROFILE="$HOME/.profile" BASHRC="$HOME/.bashrc"