fix issue, when profile not end with newline

pull/4259/head
Monius 2 years ago
parent eb27013fba
commit dcf9c467c3

@ -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"

Loading…
Cancel
Save