ci: sort with dictionary mode for compatibility (#1388)
This commit is contained in:
parent
bf0a2c1134
commit
1507791993
|
|
@ -28,8 +28,8 @@ body:
|
||||||
- area:browser
|
- area:browser
|
||||||
- area:cicd
|
- area:cicd
|
||||||
- area:client
|
- area:client
|
||||||
- area:cloud
|
|
||||||
- area:cloudevents
|
- area:cloudevents
|
||||||
|
- area:cloud
|
||||||
- area:code
|
- area:code
|
||||||
- area:container
|
- area:container
|
||||||
- area:cpu
|
- area:cpu
|
||||||
|
|
|
||||||
|
|
@ -20,8 +20,8 @@ body:
|
||||||
- area:browser
|
- area:browser
|
||||||
- area:cicd
|
- area:cicd
|
||||||
- area:client
|
- area:client
|
||||||
- area:cloud
|
|
||||||
- area:cloudevents
|
- area:cloudevents
|
||||||
|
- area:cloud
|
||||||
- area:code
|
- area:code
|
||||||
- area:container
|
- area:container
|
||||||
- area:cpu
|
- area:cpu
|
||||||
|
|
|
||||||
|
|
@ -29,8 +29,8 @@ body:
|
||||||
- area:browser
|
- area:browser
|
||||||
- area:cicd
|
- area:cicd
|
||||||
- area:client
|
- area:client
|
||||||
- area:cloud
|
|
||||||
- area:cloudevents
|
- area:cloudevents
|
||||||
|
- area:cloud
|
||||||
- area:code
|
- area:code
|
||||||
- area:container
|
- area:container
|
||||||
- area:cpu
|
- area:cpu
|
||||||
|
|
|
||||||
|
|
@ -9,8 +9,8 @@ CUR_DIRECTORY=$(dirname "$0")
|
||||||
REPO_DIR="$( cd "$CUR_DIRECTORY/../../../" && pwd )"
|
REPO_DIR="$( cd "$CUR_DIRECTORY/../../../" && pwd )"
|
||||||
REGISTRY_DIR="$( cd "$REPO_DIR/model/registry" && pwd )"
|
REGISTRY_DIR="$( cd "$REPO_DIR/model/registry" && pwd )"
|
||||||
|
|
||||||
|
# Explicitly sort with `-d` (dictionary) so BSD and GNU work alike.
|
||||||
for entry in $(ls $REGISTRY_DIR | egrep '\.yaml$' | sort)
|
for entry in $(ls $REGISTRY_DIR | egrep '\.yaml$' | sort -d)
|
||||||
do
|
do
|
||||||
echo "$entry"
|
echo "$entry"
|
||||||
done
|
done
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue