OSDN Git Service
(root)
/
alterlinux
/
alterlinux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
93aa341
)
[fix] : Added architecture check
author
hayao
<hayao@fascode.net>
Sun, 10 Oct 2021 11:23:05 +0000
(20:23 +0900)
committer
hayao
<hayao@fascode.net>
Sun, 10 Oct 2021 11:23:05 +0000
(20:23 +0900)
tools/locale.sh
patch
|
blob
|
history
diff --git
a/tools/locale.sh
b/tools/locale.sh
index
3e502b5
..
dbb1a4a
100755
(executable)
--- a/
tools/locale.sh
+++ b/
tools/locale.sh
@@
-45,6
+45,10
@@
gen_locale_list() {
msg_error "No architecture specified."
exit 1
fi
+ if [[ ! -f "${script_path}/system/locale-${arch}" ]]; then
+ msg_error "Missing architecture ${arch}"
+ exit 1
+ fi
local _locale
for _locale in $(grep -h -v ^'#' "${script_path}/system/locale-${arch}" | grep -v ^$ | getclm 1); do
localelist+=("${_locale}")