Merge pull request #682 from dylanaraps/get_locale

Info: Added function to display locale.
This commit is contained in:
Dylan Araps 2017-04-06 09:33:55 +10:00 committed by GitHub
commit 0180485851
2 changed files with 5 additions and 0 deletions

View File

@ -37,6 +37,7 @@ print_info() {
# info "Public IP" public_ip # info "Public IP" public_ip
# info "Users" users # info "Users" users
# info "Install Date" install_date # info "Install Date" install_date
# info "Locale" locale # This only works on glibc systems.
info line_break info line_break
info cols info cols

View File

@ -1997,6 +1997,10 @@ get_install_date() {
install_date="$(convert_time "${install_date[@]}")" install_date="$(convert_time "${install_date[@]}")"
} }
get_locale() {
locale="$sys_locale"
}
get_cols() { get_cols() {
if [[ "$color_blocks" == "on" ]]; then if [[ "$color_blocks" == "on" ]]; then
# Convert the width to space chars. # Convert the width to space chars.