mirror of
https://github.com/acmesh-official/acme.sh.git
synced 2025-05-05 13:32:49 +00:00
that's a one-liner..
This commit is contained in:
parent
31f3ac857e
commit
88c4d15c77
9
acme.sh
9
acme.sh
@ -3440,20 +3440,17 @@ uninstall() {
|
|||||||
|
|
||||||
_profile="$(_detect_profile)"
|
_profile="$(_detect_profile)"
|
||||||
if [ "$_profile" ] ; then
|
if [ "$_profile" ] ; then
|
||||||
text="$(cat $_profile)"
|
sed -i "|/$LE_WORKING_DIR/$PROJECT_NAME\.env/d" "$_profile"
|
||||||
echo "$text" | sed "s|^.*\"$LE_WORKING_DIR/$PROJECT_NAME.env\"$||" > "$_profile"
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
_csh_profile="$HOME/.cshrc"
|
_csh_profile="$HOME/.cshrc"
|
||||||
if [ -f "$_csh_profile" ] ; then
|
if [ -f "$_csh_profile" ] ; then
|
||||||
text="$(cat $_csh_profile)"
|
sed -i "|/$LE_WORKING_DIR/$PROJECT_NAME\.csh/d" "$_csh_profile"
|
||||||
echo "$text" | sed "s|^.*\"$LE_WORKING_DIR/$PROJECT_NAME.csh\"$||" > "$_csh_profile"
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
_tcsh_profile="$HOME/.tcshrc"
|
_tcsh_profile="$HOME/.tcshrc"
|
||||||
if [ -f "$_tcsh_profile" ] ; then
|
if [ -f "$_tcsh_profile" ] ; then
|
||||||
text="$(cat $_tcsh_profile)"
|
sed -i "|/$LE_WORKING_DIR/$PROJECT_NAME\.csh/d" "$_tcsh_profile"
|
||||||
echo "$text" | sed "s|^.*\"$LE_WORKING_DIR/$PROJECT_NAME.csh\"$||" > "$_tcsh_profile"
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
rm -f $LE_WORKING_DIR/$PROJECT_ENTRY
|
rm -f $LE_WORKING_DIR/$PROJECT_ENTRY
|
||||||
|
Loading…
x
Reference in New Issue
Block a user