File tree Expand file tree Collapse file tree 3 files changed +7
-9
lines changed Expand file tree Collapse file tree 3 files changed +7
-9
lines changed Original file line number Diff line number Diff line change 48
48
./hack/update-generated-kms-dockerized.sh
49
49
./hack/update-generated-protobuf-dockerized.sh
50
50
./hack/update-generated-runtime-dockerized.sh
51
- ./hack/update-gofmt.sh
52
51
./hack/update-openapi-spec.sh
53
- ./hack/update-translations.sh
54
52
./hack/update-vendor-licenses.sh
55
53
./hack/update-vendor.sh
56
54
./hack/verify-api-groups.sh
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ set -o errexit
20
20
set -o nounset
21
21
set -o pipefail
22
22
23
- KUBE_ROOT=$( dirname " ${BASH_SOURCE} " ) /..
23
+ KUBE_ROOT=$( dirname " ${BASH_SOURCE[0] } " ) /..
24
24
source " ${KUBE_ROOT} /hack/lib/init.sh"
25
25
26
26
kube::golang::verify_go_version
@@ -44,4 +44,4 @@ find_files() {
44
44
}
45
45
46
46
GOFMT=" gofmt -s -w"
47
- find_files | xargs ${GOFMT}
47
+ find_files | xargs " ${GOFMT} "
Original file line number Diff line number Diff line change 14
14
# See the License for the specific language governing permissions and
15
15
# limitations under the License.
16
16
17
- KUBE_ROOT=$( dirname " ${BASH_SOURCE} " ) /..
17
+ KUBE_ROOT=$( dirname " ${BASH_SOURCE[0] } " ) /..
18
18
source " ${KUBE_ROOT} /hack/lib/util.sh"
19
19
20
20
KUBECTL_FILES=" pkg/kubectl/cmd/*.go pkg/kubectl/cmd/*/*.go"
61
61
62
62
if [[ " ${generate_pot} " == " true" ]]; then
63
63
echo " Extracting strings to POT"
64
- go-xgettext -k=i18n.T ${KUBECTL_FILES} > tmp.pot
64
+ go-xgettext -k=i18n.T " ${KUBECTL_FILES} " > tmp.pot
65
65
perl -pi -e ' s/CHARSET/UTF-8/' tmp.pot
66
66
perl -pi -e ' s/\\\(/\\\\\(/g' tmp.pot
67
67
perl -pi -e ' s/\\\)/\\\\\)/g' tmp.pot
78
78
if [[ " ${generate_mo} " == " true" ]]; then
79
79
echo " Generating .po and .mo files"
80
80
for x in translations/* /* /* /* .po; do
81
- msgcat -s ${x} > tmp.po
82
- mv tmp.po ${x}
81
+ msgcat -s " ${x} " > tmp.po
82
+ mv tmp.po " ${x} "
83
83
echo " generating .mo file for: ${x} "
84
- msgfmt ${x} -o " $( dirname ${x} ) /$( basename ${x} .po) .mo"
84
+ msgfmt " ${x} " -o " $( dirname " ${x} " ) /$( basename " ${x} " .po) .mo"
85
85
done
86
86
fi
87
87
You can’t perform that action at this time.
0 commit comments