Skip to content

Commit 10f202e

Browse files
authored
sort api versions when updating clientset (#3652)
1 parent a5be7b5 commit 10f202e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hack/update-clientset.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ GATEWAY_INPUT_DIRS_SPACE=""
4444
GATEWAY_INPUT_DIRS_COMMA=""
4545

4646
for API_PATH in "${API_PATHS[@]}"; do
47-
VERSIONS=($(find ./${API_PATH} -maxdepth 1 -name "v*" -exec bash -c 'basename {}' \; | xargs))
47+
VERSIONS=($(find ./${API_PATH} -maxdepth 1 -name "v*" -exec bash -c 'basename {}' \; | LC_ALL=C sort -u))
4848
for VERSION in "${VERSIONS[@]}"; do
4949
GATEWAY_INPUT_DIRS_SPACE+="${APIS_PKG}/${API_PATH}/${VERSION} "
5050
GATEWAY_INPUT_DIRS_COMMA+="${APIS_PKG}/${API_PATH}/${VERSION},"

0 commit comments

Comments
 (0)