Check locale before init
This commit is contained in:
parent
205c7ca425
commit
5a6669a5fc
3 changed files with 9 additions and 2 deletions
5
init
5
init
|
@ -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}
|
Loading…
Add table
Add a link
Reference in a new issue