diff options
-rw-r--r-- | sh/profile.d/editor.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sh/profile.d/editor.sh b/sh/profile.d/editor.sh index d8d13e0a..6e202e26 100644 --- a/sh/profile.d/editor.sh +++ b/sh/profile.d/editor.sh @@ -9,7 +9,7 @@ if command -v ed >/dev/null 2>&1 ; then elif ( command -v ex >/dev/null 2>&1 || exit 1 command -v exm >/dev/null 2>&1 || exit 1 - ver=$(ex --version 2>/dev/null | awk 'NR==1{print $1;exit}') + ver=$(ex --version 2>/dev/null | awk '{print $1;exit}') case $ver in (VIM) exit 0 ;; (*) exit 1 ;; |