Skip to content

check_rpi_temp.sh: problem with printf if LANG or/and LC_ALL is set #3

@rfertig

Description

@rfertig

Hello.

I found a little issue at check_rpi_temp.sh. My Raspberries are set to german, systemwide (as far as I remember, I did it via raspi-config). When running check_rpi_temp.sh I get the message:

./check_rpi_temp.sh: Zeile 95: printf: 51.5: Ungültige Zahl.
It seems that printf depends on the language settings, so while this is set to german, it expects 51,5, not 51.5

When putting the following at the upper part of the script, it works fine:

LANG=
LC_ALL=

check_rpi_temp.patch.txt

Greetings

René

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions