mirror of
https://github.com/GAM-team/GAM.git
synced 2026-07-04 04:41:35 +00:00
add message to restart term
This commit is contained in:
@@ -148,13 +148,12 @@ fi
|
|||||||
|
|
||||||
# Update profile to add gam command
|
# Update profile to add gam command
|
||||||
if [ "$update_profile" = true ]; then
|
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
|
if [ "$gamos" == "linux" ]; then
|
||||||
update_profile "$HOME/.bashrc" || update_profile "$HOME/.bash_profile"
|
update_profile "$HOME/.bashrc" || update_profile "$HOME/.bash_profile"
|
||||||
elif [ "$gamos" == "macos" ]; then
|
elif [ "$gamos" == "macos" ]; then
|
||||||
update_profile "$HOME/.profile" || update_profile "$HOME/.bash_profile"
|
update_profile "$HOME/.profile" || update_profile "$HOME/.bash_profile"
|
||||||
fi
|
fi
|
||||||
$alias_line
|
|
||||||
else
|
else
|
||||||
echo_yellow "skipping profile update."
|
echo_yellow "skipping profile update."
|
||||||
fi
|
fi
|
||||||
@@ -260,5 +259,10 @@ if (( $rc != 0 )); then
|
|||||||
exit
|
exit
|
||||||
fi
|
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
|
# Clean up after ourselves even if we are killed with CTRL-C
|
||||||
trap "rm -rf $temp_archive_dir" EXIT
|
trap "rm -rf $temp_archive_dir" EXIT
|
||||||
|
|||||||
Reference in New Issue
Block a user