fix issue, when profile not end with newline

This commit is contained in:
Monius 2022-08-20 19:37:51 +08:00
parent eb27013fba
commit dcf9c467c3
1 changed files with 1 additions and 1 deletions

View File

@ -6371,7 +6371,7 @@ _installalias() {
if [ "$_profile" ]; then if [ "$_profile" ]; then
_debug "Found profile: $_profile" _debug "Found profile: $_profile"
_info "Installing alias to '$_profile'" _info "Installing alias to '$_profile'"
_setopt "$_profile" ". \"$_envfile\"" _setopt "$_profile" "\n. \"$_envfile\""
_info "OK, Close and reopen your terminal to start using $PROJECT_NAME" _info "OK, Close and reopen your terminal to start using $PROJECT_NAME"
else else
_info "No profile is found, you will need to go into $LE_WORKING_DIR to use $PROJECT_NAME" _info "No profile is found, you will need to go into $LE_WORKING_DIR to use $PROJECT_NAME"