mirror of
https://github.com/acmesh-official/acme.sh.git
synced 2026-01-09 16:42:10 +08:00
fix bug, uninstall env
This commit is contained in:
2
acme.sh
2
acme.sh
@@ -1886,7 +1886,7 @@ uninstall() {
|
|||||||
_profile="$(_detect_profile)"
|
_profile="$(_detect_profile)"
|
||||||
if [ "$_profile" ] ; then
|
if [ "$_profile" ] ; then
|
||||||
text="$(cat $_profile)"
|
text="$(cat $_profile)"
|
||||||
echo "$text" | sed "s|^source.*$PROJECT_NAME.env.*$||" > "$_profile"
|
echo "$text" | sed "s|^[.] \"$LE_WORKING_DIR/$PROJECT_NAME.env\"$||" > "$_profile"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
rm -f $LE_WORKING_DIR/$PROJECT_ENTRY
|
rm -f $LE_WORKING_DIR/$PROJECT_ENTRY
|
||||||
|
|||||||
Reference in New Issue
Block a user