Skip to content

Commit 3d48684

Browse files
committed
style: fix shfmt spacing in arithmetic expressions
shfmt -i 4 -ci requires spaces around + in $((missing + 1)), not $((missing+1)).
1 parent 9bc13ac commit 3d48684

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

tests/test_setup_functions.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -748,15 +748,15 @@ test_compose_s6_overlay_has_cap_add() {
748748
block=$(grep -A 40 "^ ${svc}:" "$compose_file")
749749
if ! echo "$block" | grep -q 'cap_add:'; then
750750
echo " WARN: $svc missing cap_add (needed for s6-overlay)" >&2
751-
missing=$((missing+1))
751+
missing=$((missing + 1))
752752
fi
753753
if ! echo "$block" | grep -q 'SETGID'; then
754754
echo " WARN: $svc missing SETGID in cap_add" >&2
755-
missing=$((missing+1))
755+
missing=$((missing + 1))
756756
fi
757757
if ! echo "$block" | grep -q 'SETUID'; then
758758
echo " WARN: $svc missing SETUID in cap_add" >&2
759-
missing=$((missing+1))
759+
missing=$((missing + 1))
760760
fi
761761
done
762762
if [[ $missing -eq 0 ]]; then

0 commit comments

Comments
 (0)