locale: Check for existence before setting locale

This commit is contained in:
2021-02-26 12:26:34 +01:00
parent 5359e44e0d
commit 1dab90540d

View File

@@ -1,4 +1,4 @@
#!/bin/sh #!/bin/sh
export LANG=en_US.utf8 ! locale -a | grep en_US.utf8 || export LANG=en_US.utf8
export LC_TIME=tk_TM.utf8 ! locale -a | grep tk_TM.utf8 || export LC_TIME=tk_TM.utf8