modules/age: set LANG

rage has a localization crate as a dependency that whines when LANG
is unset.
This commit is contained in:
Cole Helbling 2021-02-25 15:16:28 -08:00
parent 37b1d2aa3f
commit 7ba959742e
No known key found for this signature in database
GPG key ID: B37E0F2371016A4C

View file

@ -14,7 +14,7 @@ let
echo "decrypting ${secretType.file} to ${secretType.path}..." echo "decrypting ${secretType.file} to ${secretType.path}..."
TMP_FILE="${secretType.path}.tmp" TMP_FILE="${secretType.path}.tmp"
mkdir -p $(dirname ${secretType.path}) mkdir -p $(dirname ${secretType.path})
(umask 0400; ${ageBin} --decrypt ${identities} -o "$TMP_FILE" "${secretType.file}") (umask 0400; LANG=${config.i18n.defaultLocale} ${ageBin} --decrypt ${identities} -o "$TMP_FILE" "${secretType.file}")
chmod ${secretType.mode} "$TMP_FILE" chmod ${secretType.mode} "$TMP_FILE"
chown ${secretType.owner}:${secretType.group} "$TMP_FILE" chown ${secretType.owner}:${secretType.group} "$TMP_FILE"
mv -f "$TMP_FILE" '${secretType.path}' mv -f "$TMP_FILE" '${secretType.path}'