File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -274,13 +274,13 @@ EOF
274274 nomad run -output -var-file=env.env project.hcl | jq ' .. | .Driver? | select(. != null)' > | drivers.txt
275275 # there should be exactly one of these drivers in the HCL
276276 NUM=$( grep -icE ' ^"DRIVER_SET_AT_RUNTIME"$' drivers.txt | cat)
277- if [ " $NUM " != 1 ]; then ; echo ' bad drivers setup' ; exit 1; fi
277+ if [ " $NUM " -ne 1 ]; then echo ' bad drivers setup' ; exit 1; fi
278278 # there should be 1+ of either of these drivers in the HCL
279279 NUM=$( grep -icE ' ^"(docker|podman)"$' drivers.txt | cat)
280- if [ " $NUM " -lt 1 ]; then ; echo ' drivers not located?' ; exit 1; fi
280+ if [ " $NUM " -lt 1 ]; then echo ' drivers not located?' ; exit 1; fi
281281 # there should be 0 of either of these drivers in the HCL
282282 NUM=$( grep -icE ' ^"(exec|raw_exec)"$' drivers.txt | cat)
283- if [ " $NUM " != 0 ]; then ; echo ' bad drivers in project' ; exit 1; fi
283+ if [ " $NUM " -ne 0 ]; then echo ' bad drivers in project' ; exit 1; fi
284284 rm drivers.txt
285285
286286 # Now swap in the 'raw_exec' driver for the 'kv' task
You can’t perform that action at this time.
0 commit comments