build: updated locale for rbac generation

Currently there was an issue related to sorting
files in Rbac generation in different platforms
Updated the locale to LC_ALL=C so rbac generation
can done correctly

Closes: https://github.com/rook/rook/issues/9331
Co-authored-by: Blaine Gardner blaine.gardner@redhat.com
Signed-off-by: parth-gr <paarora@redhat.com>
(cherry picked from commit 3647dec90f)
This commit is contained in:
parth-gr authored and mergify-bot committed 2021-12-07 16:24:30 +00:00
1 parent 25e1f967f4
commit bf19a68b49
1 file changed
+4
+4
View File
@@ -1,5 +1,9 @@
#!/usr/bin/env bash
set -eEuo pipefail
# setting locate `LC_ALL=C` because different OS do files sorting differently,
# so setting a common behaviour, `C` sorting order is based on the byte values,
# Reference: https://blog.zhimingwang.org/macos-lc_collate-hunt
LC_ALL=C
# READS FROM STDIN
# WRITES TO STDOUT