mirror of
https://github.com/plantroon/acme.sh.git
synced 2024-12-25 14:41:40 +00:00
fix compatible, 'sed -i' is not supported be freeBSD
This commit is contained in:
parent
44df296707
commit
7203a1c1a0
3
le.sh
3
le.sh
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user