aboutsummaryrefslogtreecommitdiff
path: root/sh
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2018-06-13 16:32:55 +1200
committerTom Ryder <tom@sanctum.geek.nz>2018-06-13 16:32:55 +1200
commite2208096a719add9671066cb94ce5b8bb83bfa78 (patch)
tree5efd779f4695d66a724aa1ed5ca01df727ee71a0 /sh
parentRefactor tilde and extension stripping (diff)
downloaddotfiles-e2208096a719add9671066cb94ce5b8bb83bfa78.tar.gz
dotfiles-e2208096a719add9671066cb94ce5b8bb83bfa78.zip
Remove redundant NR==1 in awk(1) call
Duhhhhh.
Diffstat (limited to 'sh')
-rw-r--r--sh/profile.d/editor.sh2
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 ;;