diff options
Diffstat (limited to 'editors/elvis/CONFIGURE')
-rwxr-xr-x | editors/elvis/CONFIGURE | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/editors/elvis/CONFIGURE b/editors/elvis/CONFIGURE index 23d189e785..4cc297b17d 100755 --- a/editors/elvis/CONFIGURE +++ b/editors/elvis/CONFIGURE @@ -1,6 +1,7 @@ -config_query MAKE_SYMLINK "Would you like to have /usr/bin/vi as a symlink to /usr/bin/elvis?" n +config_query MAKE_SYMLINK "Would you like to have /usr/bin/vi as a symlink to /usr/bin/elvis?" n && + if [ "${MAKE_SYMLINK}" == "y" ] ; then - if [ -e /usr/bin/vi ] ; then + if [ -e /usr/bin/vi ] && `readlink -f "/usr/bin/vi" | grep -viq "elvis"`; then echo "VI is already provided by vim." && echo "To have elvis as provider of vi, recast vim with the vi symlink option disabled, then recast elvis." && MAKE_SYMLINK="n" |