Browse Source

redis: remove quotes when reading variables

pull/100/head
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      redis/files/check_redis_instances.sh

+ 1
- 1
redis/files/check_redis_instances.sh View File

@@ -54,7 +54,7 @@ check_server() {
config_var() {
variable=$1
file=$2
test -f "${file}" && grep -E "^${variable}\s+.+$" "${file}" | awk '{ print $2 }'
test -f "${file}" && grep -E "^${variable}\s+.+$" "${file}" | awk '{ print $2 }' | sed -e "s/^[\"']//" -e "s/[\"']$//"
}

# default instance


Loading…
Cancel
Save