Mercurial > kallithea
view scripts/run-all-cleanup @ 7786:0f33c1da2fd5
kallithea-cli: set ssh_locale when creating .ini file so it doesn't have to be set manually before using ssh
The Python standard library does not seem to provide a simple way to
determine the current locale without calling locale.setlocale() and thus
potentially influencing the rest of the program.
Instead, try to determine the locale based on environment variables present
when 'kallithea-cli config-create' is run, and use it to prepopulate the ini
file.
author | Thomas De Schampheleire <thomas.de_schampheleire@nokia.com> |
---|---|
date | Mon, 01 Jul 2019 10:05:00 +0200 |
parents | 40edadecda69 |
children | 51af7c12ffb1 |
line wrap: on
line source
#!/bin/sh # Convenience script for running various idempotent source code cleanup scripts set -e set -x scripts/docs-headings.py scripts/generate-ini.py scripts/whitespacecleanup.sh