mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-04-27 11:31:05 +00:00
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:
parent
cc5f8d31d2
commit
4589dc96ef
@ -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\")
|
||||
|
Loading…
Reference in New Issue
Block a user