diff --git a/hack/.shellcheck_failures b/hack/.shellcheck_failures index bb1edb4ac7..d13a3a8f1e 100644 --- a/hack/.shellcheck_failures +++ b/hack/.shellcheck_failures @@ -98,7 +98,6 @@ ./test/e2e_node/environment/setup_host.sh ./test/e2e_node/gubernator.sh ./test/images/image-util.sh -./test/images/pets/redis-installer/on-start.sh ./test/images/pets/zookeeper-installer/install.sh ./test/images/pets/zookeeper-installer/on-start.sh ./test/images/volume/gluster/run_gluster.sh diff --git a/test/images/pets/redis-installer/on-start.sh b/test/images/pets/redis-installer/on-start.sh index dd9a4e656c..cc8f8084ab 100755 --- a/test/images/pets/redis-installer/on-start.sh +++ b/test/images/pets/redis-installer/on-start.sh @@ -27,7 +27,7 @@ PORT=6379 while read -ra LINE; do if [[ "${LINE}" == *"${HOSTNAME}"* ]]; then sed -i -e "s|^bind.*$|bind ${LINE}|" ${CFG} - elif [ "$(/opt/redis/redis-cli -h $LINE info | grep role | sed 's,\r$,,')" = "role:master" ]; then + elif [ "$(/opt/redis/redis-cli -h "${LINE}" info | grep role | sed 's,\r$,,')" = "role:master" ]; then # TODO: More restrictive regex? sed -i -e "s|^# slaveof.*$|slaveof ${LINE} ${PORT}|" ${CFG} fi