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
14f3dbb7
Commit
14f3dbb7
authored
Apr 22, 2016
by
neil
Browse files
minor, fix sed_i
parent
0103f59f
Changes
1
Hide whitespace changes
Inline
Side-by-side
acme.sh
View file @
14f3dbb7
...
@@ -168,10 +168,10 @@ _sed_i() {
...
@@ -168,10 +168,10 @@ _sed_i() {
_err
"Usage:_sed_i options filename"
_err
"Usage:_sed_i options filename"
return
1
return
1
fi
fi
_debug2 options
"
$options
"
if
sed
-h
2>&1 |
grep
"
\-
i[SUFFIX]"
;
then
if
sed
-h
2>&1 |
grep
"
\-
i
\
[
SUFFIX]"
>
/dev/null 2>&1
;
then
_debug
"Using sed -i"
_debug
"Using sed -i"
sed
-i
""
sed
-i
"
$options
"
"
$filename
"
else
else
_debug
"No -i support in sed"
_debug
"No -i support in sed"
text
=
"
$(
cat
$filename
)
"
text
=
"
$(
cat
$filename
)
"
...
...
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