tests: k8s/tests_common.sh: add double quoting

ShellCheck:

note: Prefer double quoting even when variables don't contain special characters. [SC2248]

Signed-off-by: Dan Mihai <dmihai@microsoft.com>
This commit is contained in:
Dan Mihai 2025-03-18 23:41:13 +00:00
parent cc5f8d31d2
commit 4589dc96ef

View File

@ -51,7 +51,7 @@ setup_common() {
node_start_time=$(exec_host "${node}" date +\"%Y-%m-%d %H:%M:%S\")
# If node_start_time is empty, try again 3 times with a 5 seconds sleep between each try.
count=0
while [[ -z "${node_start_time}" ]] && [[ ${count} -lt 3 ]]; do
while [[ -z "${node_start_time}" ]] && [[ "${count}" -lt 3 ]]; do
echo "node_start_time is empty, trying again..."
sleep 5
node_start_time=$(exec_host "${node}" date +\"%Y-%m-%d %H:%M:%S\")