Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
Acme.Sh
Commits
f2634b44
Commit
f2634b44
authored
Aug 21, 2022
by
Monius
Browse files
add EOF, if $__conf not end with one
parent
dcf9c467
Changes
1
Hide whitespace changes
Inline
Side-by-side
acme.sh
View file @
f2634b44
...
@@ -2239,7 +2239,11 @@ _setopt() {
...
@@ -2239,7 +2239,11 @@ _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
if _contains "$__val" "&"; then
if _contains "$__val" "&"; then
...
@@ -6371,7 +6375,7 @@ _installalias() {
...
@@ -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"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment