mirror of https://github.com/zulip/zulip.git
certbot-maybe-renew: Fix shellcheck warnings.
In scripts/lib/certbot-maybe-renew line 8: case "$(echo "$value" | tr A-Z a-z)" in ^-- SC2019: Use '[:upper:]' to support accents and foreign alphabets. ^-- SC2018: Use '[:lower:]' to support accents and foreign alphabets. Signed-off-by: Anders Kaseorg <andersk@mit.edu>
This commit is contained in:
parent
edfd5ef992
commit
5b4d30abab
|
@ -5,7 +5,7 @@ zulip_conf_get_boolean() {
|
|||
# `configparser` library's conventions for what counts as true.
|
||||
# Treat absent and invalid values as false.
|
||||
value=$(crudini --get /etc/zulip/zulip.conf "$1" "$2" 2>/dev/null)
|
||||
case "$(echo "$value" | tr A-Z a-z)" in
|
||||
case "$(echo "$value" | tr '[:upper:]' '[:lower:]')" in
|
||||
1|yes|true|on) return 0 ;;
|
||||
*) return 1 ;;
|
||||
esac
|
||||
|
|
Loading…
Reference in New Issue