Skip to content

Commit

Permalink
Merge pull request #21 from pavelkim/dev
Browse files Browse the repository at this point in the history
[Fix] Screwed up -G parameter processing
  • Loading branch information
pavelkim authored Feb 12, 2022
2 parents da57bf6 + 6a24419 commit a93f144
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.6.2
1.6.3
5 changes: 4 additions & 1 deletion check_certificates.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/bin/bash
# shellcheck disable=SC2015
#
# Checks if SSL Certificate on https server is valid.
#
Expand Down Expand Up @@ -304,12 +305,14 @@ main() {

if [[ "${CLI_GENERATE_METRICS}" == "1" ]] && [[ -z "${PROMETHEUS_EXPORT_FILENAME}" ]]; then
error "Error! PROMETHEUS_EXPORT_FILENAME is not set"
else
elif [[ "${CLI_GENERATE_METRICS}" == "1" ]] && [[ ! -z "${PROMETHEUS_EXPORT_FILENAME}" ]]; then
if ! touch "${PROMETHEUS_EXPORT_FILENAME}"; then
error "Can't create Prometheus metrics file '${PROMETHEUS_EXPORT_FILENAME}'"
else
info "Prometheus metrics file touched: '${PROMETHEUS_EXPORT_FILENAME}'"
fi
else
info "Prometheus metrics generation not requested"
fi

if [[ ! -z "${CLI_INPUT_FILENAME}" ]]; then
Expand Down

0 comments on commit a93f144

Please sign in to comment.