Skip to content

Commit 9f3f154

Browse files
committed
syntax fix
1 parent aae1324 commit 9f3f154

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

deploy.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)