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
7203a1c1
Commit
7203a1c1
authored
Mar 09, 2016
by
neil
Browse files
fix compatible, 'sed -i' is not supported be freeBSD
parent
44df2967
Changes
1
Hide whitespace changes
Inline
Side-by-side
le.sh
View file @
7203a1c1
...
@@ -1274,7 +1274,8 @@ uninstall() {
...
@@ -1274,7 +1274,8 @@ uninstall() {
_profile
=
"
$(
_detect_profile
)
"
_profile
=
"
$(
_detect_profile
)
"
if
[
"
$_profile
"
]
;
then
if
[
"
$_profile
"
]
;
then
sed
-i
/le.env/d
"
$_profile
"
text
=
"
$(
cat
$_profile
)
"
echo
"
$text
"
|
sed
"s|^source.*le.env.*
$|
|"
>
"
$_profile
"
fi
fi
rm
-f
$LE_WORKING_DIR
/le.sh
rm
-f
$LE_WORKING_DIR
/le.sh
...
...
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