From e2208096a719add9671066cb94ce5b8bb83bfa78 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Wed, 13 Jun 2018 16:32:55 +1200 Subject: Remove redundant NR==1 in awk(1) call Duhhhhh. --- sh/profile.d/editor.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sh/profile.d/editor.sh') 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 ;; -- cgit v1.2.3