1
0
Fork 0

Zsh: Use more shell builtins for LC_TIME setting

This commit is contained in:
tastytea 2022-04-02 17:40:33 +02:00
parent d568b10ef8
commit e8490692b3
Signed by: tastytea
SSH Key Fingerprint: SHA256:FBkvrOlhq5use1XEttyUGT4bUTDVA1ar9SgIc9P03cM
1 changed files with 2 additions and 2 deletions

View File

@ -119,8 +119,8 @@ if command -v virsh > /dev/null; then
fi
# Use ISO 8601 date & time.
if command -v locale > /dev/null; then
locale -a | grep -q en_DK && export LC_TIME="en_DK.utf8"
if [[ "${LC_TIME}" != "en_DK.utf8" ]] && command -v locale > /dev/null; then
[[ "$(locale --all-locales)" =~ "en_DK" ]] && export LC_TIME="en_DK.utf8"
fi
export CCACHE_DIR="/var/cache/ccache"