diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2015-10-02 11:11:39 +1300 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2015-10-02 11:11:39 +1300 |
commit | 98beaf656f8fe54a658ca9ef5fb1f23d95d41a55 (patch) | |
tree | 6594857b618281df9686ecb7ddcdb1e90732a4d3 | |
parent | Use printf not echo (diff) | |
download | dotfiles-98beaf656f8fe54a658ca9ef5fb1f23d95d41a55.tar.gz dotfiles-98beaf656f8fe54a658ca9ef5fb1f23d95d41a55.zip |
Appease shellcheck with multi arith exps
-rw-r--r-- | bash/bash_logout | 4 | ||||
-rw-r--r-- | bash/bash_profile | 4 | ||||
-rw-r--r-- | bash/bashrc | 4 |
3 files changed, 6 insertions, 6 deletions
diff --git a/bash/bash_logout b/bash/bash_logout index e5855f36..4b8d3943 100644 --- a/bash/bash_logout +++ b/bash/bash_logout @@ -3,8 +3,8 @@ # 2.05a). if ! [ -n "$BASH_VERSINFO" ] ; then return -elif ((BASH_VERSINFO[0] == 2 && \ - 10#${BASH_VERSINFO[1]%%[![:digit:]]*} < 5)) ; then +elif ((BASH_VERSINFO[0] == 2)) && \ + ((10#${BASH_VERSINFO[1]%%[![:digit:]]*} < 5)) ; then return fi diff --git a/bash/bash_profile b/bash/bash_profile index e8762fd2..f89d83f1 100644 --- a/bash/bash_profile +++ b/bash/bash_profile @@ -8,8 +8,8 @@ fi # 2.05a). if ! [ -n "$BASH_VERSINFO" ] ; then return -elif ((BASH_VERSINFO[0] == 2 && \ - 10#${BASH_VERSINFO[1]%%[![:digit:]]*} < 5)) ; then +elif ((BASH_VERSINFO[0] == 2)) && \ + ((10#${BASH_VERSINFO[1]%%[![:digit:]]*} < 5)) ; then return fi diff --git a/bash/bashrc b/bash/bashrc index 2de3f6f4..55da282e 100644 --- a/bash/bashrc +++ b/bash/bashrc @@ -3,8 +3,8 @@ # 2.05a). if ! [ -n "$BASH_VERSINFO" ] ; then return -elif ((BASH_VERSINFO[0] == 2 && \ - 10#${BASH_VERSINFO[1]%%[![:digit:]]*} < 5)) ; then +elif ((BASH_VERSINFO[0] == 2)) && \ + ((10#${BASH_VERSINFO[1]%%[![:digit:]]*} < 5)) ; then return fi |