Skip to content

Commit eb9385a

Browse files
committed
restyle the restyler
1 parent e6afd0e commit eb9385a

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

scripts/helpers/restyle-diff.sh

+15-15
Original file line numberDiff line numberDiff line change
@@ -40,20 +40,20 @@ cd "$CHIP_ROOT"
4040

4141
restyle-paths() {
4242
image=restyled/restyler:edge
43-
(
44-
docker run \
45-
--env LOG_LEVEL \
46-
--env LOG_DESTINATION \
47-
--env LOG_FORMAT \
48-
--env LOG_COLOR \
49-
--env HOST_DIRECTORY="$PWD" \
50-
--env UNRESTRICTED=1 \
51-
--volume "$PWD":/code \
52-
--volume /tmp:/tmp \
53-
--volume /var/run/docker.sock:/var/run/docker.sock \
54-
--entrypoint restyle-path \
55-
"$image" "$@"
56-
)
43+
44+
docker run \
45+
--env LOG_LEVEL \
46+
--env LOG_DESTINATION \
47+
--env LOG_FORMAT \
48+
--env LOG_COLOR \
49+
--env HOST_DIRECTORY="$PWD" \
50+
--env UNRESTRICTED=1 \
51+
--volume "$PWD":/code \
52+
--volume /tmp:/tmp \
53+
--volume /var/run/docker.sock:/var/run/docker.sock \
54+
--entrypoint restyle-path \
55+
"$image" "$@"
56+
5757
}
5858

5959
#This was added to be able to use xargs to call the function restyle-paths
@@ -87,4 +87,4 @@ fi
8787

8888
paths=$(git diff --ignore-submodules --name-only --merge-base "$ref")
8989

90-
echo "$paths" | xargs -n $MAX_ARGS bash -c 'restyle-paths "$@"'
90+
echo "$paths" | xargs -n "$MAX_ARGS" bash -c 'restyle-paths "$@"'

0 commit comments

Comments
 (0)