File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -39,18 +39,18 @@ function private_gogen() {
39
39
IFS=$' \n ' read -d ' ' -r -a gofiles < <(
40
40
printf ' %s\n' " ${changed_files[@]} " |
41
41
grep ' \.go$'
42
- )
43
- [[ " ${# gofiles[@]} " == 0 ]] && return 0
42
+ )
43
+ [[ " ${# gofiles[@]} " == 0 ]] && return 0
44
44
45
- IFS=$' \n ' read -d ' ' -r -a godirs < <(
45
+ IFS=$' \n ' read -d ' ' -r -a godirs < <(
46
46
for f in " ${gofiles[@]} " ; do dirname " $f " ; done |
47
- sort | uniq)
47
+ sort | uniq)
48
48
49
49
einfo " Running go generate..."
50
50
for dir in " ${godirs[@]} " ; do
51
- einfo " ...Generating for ${dir} "
52
- ( cd " $dir " && go generate " ./" ) && (( status == 0 ))
53
- status=$?
51
+ einfo " ...Generating for ${dir} "
52
+ ( cd " $dir " && go generate " ./" ) && (( status == 0 ))
53
+ status=$?
54
54
done
55
55
56
56
return " ${status} "
You can’t perform that action at this time.
0 commit comments