Unverified Commit be477d7a authored by neil's avatar neil Committed by GitHub
Browse files

Merge pull request #4259 from Mon-ius/master

fix a issue, when profile not end with newline
parents 6c8a623b b95f8362
......@@ -2257,6 +2257,9 @@ _setopt() {
if [ ! -f "$__conf" ]; then
touch "$__conf"
fi
if [ -n "$(tail -c 1 <"$__conf")" ]; then
echo >>"$__conf"
fi
if grep -n "^$__opt$__sep" "$__conf" >/dev/null; then
_debug3 OK
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment