Skip to content

Commit 06bfe61

Browse files
committed
Check for null values
Signed-off-by: Pete Wall <pete.wall@grafana.com>
1 parent effa2c2 commit 06bfe61

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tools/helm-test/includes/cluster/minikube.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ createMinikubeCluster() {
99
command+=("--driver=${driver}")
1010
fi
1111

12-
argsString="$(yq eval -r -o=json '.cluster.args | join(" ")' "${testPlan}")"
12+
argsString="$(yq eval -r -o=json '.cluster.args // [] | join(" ")' "${testPlan}")"
1313
if [ "${argsString}" != "null" ] && [ -n "${argsString}" ]; then
1414
IFS=" " read -r -a args <<< "${argsString}"
1515
command+=("${args[@]}")

0 commit comments

Comments
 (0)