diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2018-06-13 16:32:55 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2018-06-13 16:32:55 +1200 |
commit | e2208096a719add9671066cb94ce5b8bb83bfa78 (patch) | |
tree | 5efd779f4695d66a724aa1ed5ca01df727ee71a0 /sh/profile.d/editor.sh | |
parent | Refactor tilde and extension stripping (diff) | |
download | dotfiles-e2208096a719add9671066cb94ce5b8bb83bfa78.tar.gz dotfiles-e2208096a719add9671066cb94ce5b8bb83bfa78.zip |
Remove redundant NR==1 in awk(1) call
Duhhhhh.
Diffstat (limited to 'sh/profile.d/editor.sh')
-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 ;; |