Skip to content

Commit 9db03dc

Browse files
committed
[fix] : Added architecture check
1 parent 93aa341 commit 9db03dc

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

tools/locale.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,10 @@ gen_locale_list() {
4545
msg_error "No architecture specified."
4646
exit 1
4747
fi
48+
if [[ ! -f "${script_path}/system/locale-${arch}" ]]; then
49+
msg_error "Missing architecture ${arch}"
50+
exit 1
51+
fi
4852
local _locale
4953
for _locale in $(grep -h -v ^'#' "${script_path}/system/locale-${arch}" | grep -v ^$ | getclm 1); do
5054
localelist+=("${_locale}")

0 commit comments

Comments
 (0)