mirror of
https://github.com/plantroon/acme.sh.git
synced 2024-12-25 22:51:39 +00:00
add EOF, if $__conf not end with one
This commit is contained in:
parent
dcf9c467c3
commit
f2634b44cd
6
acme.sh
6
acme.sh
@ -2239,6 +2239,10 @@ _setopt() {
|
|||||||
if [ ! -f "$__conf" ]; then
|
if [ ! -f "$__conf" ]; then
|
||||||
touch "$__conf"
|
touch "$__conf"
|
||||||
fi
|
fi
|
||||||
|
if [ -n "$(tail -c 1 <"$__conf")" ]; then
|
||||||
|
_debug3 No New Line
|
||||||
|
echo >>"$__conf"
|
||||||
|
fi
|
||||||
|
|
||||||
if grep -n "^$__opt$__sep" "$__conf" >/dev/null; then
|
if grep -n "^$__opt$__sep" "$__conf" >/dev/null; then
|
||||||
_debug3 OK
|
_debug3 OK
|
||||||
@ -6371,7 +6375,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" "\n. \"$_envfile\""
|
_setopt "$_profile" ". \"$_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…
Reference in New Issue
Block a user