redis: remove quotes when reading variables
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Jérémy Lecour 2020-05-09 09:56:13 +02:00 committed by Jérémy Lecour
parent 849ec405d5
commit 0da938223e
1 changed files with 1 additions and 1 deletions

View File

@ -54,7 +54,7 @@ check_server() {
config_var() { config_var() {
variable=$1 variable=$1
file=$2 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 # default instance