From 9e4506141ede21116a2495b9c0e7c00e49219677 Mon Sep 17 00:00:00 2001 From: Jay Lee Date: Wed, 2 Nov 2016 12:43:40 -0400 Subject: [PATCH] add message to restart term --- src/gam-install.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/gam-install.sh b/src/gam-install.sh index 5ca397b2..bb0d93a8 100755 --- a/src/gam-install.sh +++ b/src/gam-install.sh @@ -148,13 +148,12 @@ fi # Update profile to add gam command if [ "$update_profile" = true ]; then - alias_line="alias gam=$target_dir/gam/gam" + alias_line="alias gam=\"$target_dir/gam/gam\"" if [ "$gamos" == "linux" ]; then update_profile "$HOME/.bashrc" || update_profile "$HOME/.bash_profile" elif [ "$gamos" == "macos" ]; then update_profile "$HOME/.profile" || update_profile "$HOME/.bash_profile" fi - $alias_line else echo_yellow "skipping profile update." fi @@ -260,5 +259,10 @@ if (( $rc != 0 )); then exit fi +echo_green "GAM installation and setup complete!" +if [ "$update_profile" = true ]; then + echo_green "Please restart your terminal shell or to get started right away run:\n\n$alias_line" +fi + # Clean up after ourselves even if we are killed with CTRL-C trap "rm -rf $temp_archive_dir" EXIT