diff options
author | Igor Pashev <pashev.igor@gmail.com> | 2018-12-19 19:37:09 +0300 |
---|---|---|
committer | Igor Pashev <pashev.igor@gmail.com> | 2018-12-19 19:37:09 +0300 |
commit | 0e50bd3cf87814dfc6d168a361a6adc34b692bdb (patch) | |
tree | ce371d4d0fc0455e8165f0428ff294d4e7767a14 | |
parent | f63cafa6a0d1700cc4a1fa8961c2dd831a6dace0 (diff) | |
download | nixsap-0e50bd3cf87814dfc6d168a361a6adc34b692bdb.tar.gz |
Use closed intervals
-rwxr-xr-x | pkgs/check_aws_s3_file/check_aws_s3_file | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pkgs/check_aws_s3_file/check_aws_s3_file b/pkgs/check_aws_s3_file/check_aws_s3_file index 82c8745..c1b6a34 100755 --- a/pkgs/check_aws_s3_file/check_aws_s3_file +++ b/pkgs/check_aws_s3_file/check_aws_s3_file @@ -87,9 +87,9 @@ inrange () { esac if $outter; then - { [ -n "$v1" ] && [ "$v" -lt "$v1" ]; } || { [ -n "$v2" ] && [ "$v" -gt "$v2" ]; } + { [ -n "$v1" ] && [ "$v" -le "$v1" ]; } || { [ -n "$v2" ] && [ "$v" -ge "$v2" ]; } else - { [ -z "$v1" ] || [ "$v" -gt "$v1" ]; } && { [ -z "$v2" ] || [ "$v" -lt "$v2" ]; } + { [ -z "$v1" ] || [ "$v" -ge "$v1" ]; } && { [ -z "$v2" ] || [ "$v" -le "$v2" ]; } fi } |