fix compatible, 'sed -i' is not supported be freeBSD

This commit is contained in:
neil committed 2016-03-09 23:34:41 +08:00
1 parent 44df296707
commit 7203a1c1a0
1 file changed
+2 -1
+2 -1
View File
@@ -1274,7 +1274,8 @@ uninstall() {
_profile="$(_detect_profile)"
if [ "$_profile" ] ; then
sed -i /le.env/d "$_profile"
text="$(cat $_profile)"
echo "$text" | sed "s|^source.*le.env.*$||" > "$_profile"
fi
rm -f $LE_WORKING_DIR/le.sh
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.