~修复本地上传内核报错问题

This commit is contained in:
juewuy
2026-04-04 19:50:42 +08:00
parent 2e7d615f8a
commit 13fc116985
2 changed files with 12 additions and 11 deletions

View File

@@ -3,6 +3,6 @@ load_lang() {
i18n=$(cat "$CRASHDIR"/configs/i18n.cfg 2>/dev/null)
[ -z "$i18n" ] && i18n=chs
file="$CRASHDIR/lang/$i18n/$1.lang"
[ -s "$file" ] && . "$file"
i18n_file="$CRASHDIR/lang/$i18n/$1.lang"
[ -s "$i18n_file" ] && . "$i18n_file"
}