Check locale before init

This commit is contained in:
Hactarus 2018-05-31 12:13:07 +00:00
parent 205c7ca425
commit 5a6669a5fc
3 changed files with 9 additions and 2 deletions

5
init
View file

@ -1,3 +1,8 @@
#!/bin/bash
locale -a | grep -i "utf8"
if [[ ! $? -eq 0 ]]; then
echo -e "\033[31;1mPlease install utf8 locale\033[0m"
exit 1
fi
_RDIR=$(cd `dirname $0` && pwd)
${_RDIR}/bin/homemaker.amd64 -variant $@ ${_RDIR}/common.toml ${_RDIR}