Skip to content

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

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é

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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