From 90f6de1ef7d8e20a79841ad5b30bef8429ca4145 Mon Sep 17 00:00:00 2001 From: gau1991 Date: Thu, 4 Sep 2014 19:00:48 +0530 Subject: [PATCH] Fixed Error in Vim Editor --- src/modules/site/ee_mod_site_edit.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/modules/site/ee_mod_site_edit.sh b/src/modules/site/ee_mod_site_edit.sh index 6028d027..00f7674d 100644 --- a/src/modules/site/ee_mod_site_edit.sh +++ b/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 }