Browse Source

Fixed VIM editor warning for Debian and Ubuntu

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

3
src/modules/site/ee_mod_site_edit.sh

@ -2,7 +2,8 @@
function ee_mod_site_edit()
{
grep vim ~/.selected_editor &>> $EE_COMMAND_LOG
# Redirect VIM warning to /dev/null
sensible-editor --help | head -n1 | grep VIM &>> $EE_COMMAND_LOG
if [ $? -eq 0 ]; then
sensible-editor /etc/nginx/sites-available/$EE_DOMAIN $1 2> /dev/null
else

Loading…
Cancel
Save