File tree 1 file changed +27
-27
lines changed
1 file changed +27
-27
lines changed Original file line number Diff line number Diff line change @@ -40,39 +40,39 @@ cd "$CHIP_ROOT"
40
40
41
41
restyle-paths () {
42
42
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
+
57
57
}
58
58
59
59
# This was added to be able to use xargs to call the function restyle-paths
60
60
export -f restyle-paths
61
61
62
62
while [[ $# -gt 0 ]]; do
63
63
case " $1 " in
64
- -d)
65
- export LOG_LEVEL=" DEBUG"
66
- shift
67
- ;;
68
- -p)
69
- pull_image=1
70
- shift
71
- ;;
72
- * )
73
- ref=" $1 "
74
- shift
75
- ;;
64
+ -d)
65
+ export LOG_LEVEL=" DEBUG"
66
+ shift
67
+ ;;
68
+ -p)
69
+ pull_image=1
70
+ shift
71
+ ;;
72
+ * )
73
+ ref=" $1 "
74
+ shift
75
+ ;;
76
76
esac
77
77
done
78
78
87
87
88
88
paths=$( git diff --ignore-submodules --name-only --merge-base " $ref " )
89
89
90
- echo " $paths " | xargs -n $MAX_ARGS bash -c ' restyle-paths "$@"'
90
+ echo " $paths " | xargs -n " $MAX_ARGS " bash -c ' restyle-paths "$@"'
You can’t perform that action at this time.
0 commit comments