build.sh: fix typo
authorBigfootACA <bigfoot@classfun.cn>
星期三, 6 Oct 2021 08:55:23 +0000 (16:55 +0800)
committerBigfootACA <bigfoot@classfun.cn>
星期三, 6 Oct 2021 08:55:23 +0000 (16:55 +0800)
Signed-off-by: BigfootACA <bigfoot@classfun.cn>
build.sh

index 88bc7d8ce6526cd841984e33c618d8fe0c8960c7..c053a099cf2d9c6e7c2f8e0bcd2f8f58d4153ee1 100755 (executable)
--- a/build.sh
+++ b/build.sh
@@ -191,11 +191,12 @@ export GITCOMMIT
 echo > ramdisk
 set -e
 python3 assets/generate-logo.py "${GITCOMMIT}"
-mkdir -p "${_SIMPLE_INIT}/build" "${_SIMPLE_INIT}/usr/share/locale"
+mkdir -p "${_SIMPLE_INIT}/build" "${_SIMPLE_INIT}/root/usr/share/locale"
 for i in "${_SIMPLE_INIT}/po/"*.po
 do     [ -f "${i}" ]||continue
        _name="$(basename "$i" .po)"
        _path="${_SIMPLE_INIT}/root/usr/share/locale/${_name}/LC_MESSAGES"
+       mkdir -p "${_path}"
        msgfmt -o "${_path}/simple-init.mo" "${i}"
 done
 bash "${_SIMPLE_INIT}/scripts/gen-rootfs-source.sh" \