diff --git a/src/modules/site/ee_mod_site_edit.sh b/src/modules/site/ee_mod_site_edit.sh index 00f7674d..a3d9ebe7 100644 --- a/src/modules/site/ee_mod_site_edit.sh +++ b/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