]> git.ipfire.org Git - thirdparty/systemd.git/blob - tools/choose-default-locale.sh
scripts: use 4 space indentation
[thirdparty/systemd.git] / tools / choose-default-locale.sh
1 #!/bin/sh
2 set -e
3
4 # Fedora uses C.utf8 but Debian uses C.UTF-8
5 if locale -a | grep -xq -E 'C\.(utf8|UTF-8)'; then
6 echo 'C.UTF-8'
7 elif locale -a | grep -xqF 'en_US.utf8'; then
8 echo 'en_US.UTF-8'
9 else
10 echo 'C'
11 fi