File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -130,20 +130,20 @@ gob_lazy() {
130130 # for mod in $(cat /tmp/mod.list); do
131131 # tip "...checking module '$mod'..." 1>&2
132132 # if [ "$(pwd)" = "$mod" ]; then
133- # go list -f '{{.Name}} {{.Dir}}' ./... | grep -Eo '^main[ \t ]+(.*)' | awk '{print $2}'
133+ # go list -f '{{.Name}} {{.Dir}}' ./... | grep -Eo '^main[[:space:] ]+(.*)' | awk '{print $2}'
134134 # elif [ "$mod" != "" ]; then
135135 # pushd "$mod" >/dev/null &&
136- # go list -f '{{.Name}} {{.Dir}}' ./... | grep -Eo '^main[ \t ]+(.*)' | awk '{print $2}' &&
136+ # go list -f '{{.Name}} {{.Dir}}' ./... | grep -Eo '^main[[:space:] ]+(.*)' | awk '{print $2}' &&
137137 # popd >/dev/null
138138 # fi
139139 # done
140140 for mod in $( go list -f ' {{.Dir}}' -m) ; do
141141 tip " ...checking module '$mod '..." 1>&2
142142 if [ " $( pwd) " = " $mod " ]; then
143- go mod tidy && go list -f ' {{.Name}} {{.Dir}}' ./... | grep -Eo ' ^main[ \t ]+(.*)' | awk ' {print $2}'
143+ go mod tidy && go list -f ' {{.Name}} {{.Dir}}' ./... | grep -Eo ' ^main[[:space:] ]+(.*)' | awk ' {print $2}'
144144 elif [ " $mod " != " " ]; then
145145 pushd " $mod " > /dev/null &&
146- go mod tidy && go list -f ' {{.Name}} {{.Dir}}' ./... | grep -Eo ' ^main[ \t ]+(.*)' | awk ' {print $2}' &&
146+ go mod tidy && go list -f ' {{.Name}} {{.Dir}}' ./... | grep -Eo ' ^main[[:space:] ]+(.*)' | awk ' {print $2}' &&
147147 popd > /dev/null
148148 fi
149149 done
You can’t perform that action at this time.
0 commit comments