Browse Source

Fix bug detecting the nginx version

pull/578/head
Tim Kimber 5 years ago
parent
commit
1bed21bff5
No known key found for this signature in database GPG Key ID: 3E1804964E76BD18
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      test/test_helper.bash

+ 1
- 1
test/test_helper.bash View File

@ -12,7 +12,7 @@ check_certificates()
# https://unix.stackexchange.com/questions/285924/how-to-compare-a-programs-version-in-a-shell-script
check_nginx() {
requiredver="1.11.0"
currentver="$(nginx -v)"
currentver=$(nginx -v 2>&1)
if [ "$(printf '%s\n' "$requiredver" "$currentver" | sort -V | head -n1)" = "$requiredver" ]; then
export OLD_NGINX="false"
else


Loading…
Cancel
Save