Browse Source

Fixed Error in Vim Editor

old-stable
gau1991 10 years ago
parent
commit
90f6de1ef7
  1. 7
      src/modules/site/ee_mod_site_edit.sh

7
src/modules/site/ee_mod_site_edit.sh

@ -2,5 +2,10 @@
function ee_mod_site_edit()
{
sensible-editor /etc/nginx/sites-available/$EE_DOMAIN $1
grep vim ~/.selected_editor &>> $EE_COMMAND_LOG
if [ $? -eq 0 ]; then
sensible-editor /etc/nginx/sites-available/$EE_DOMAIN $1 2> /dev/null
else
sensible-editor /etc/nginx/sites-available/$EE_DOMAIN $1
fi
}

Loading…
Cancel
Save