Skip to content
Martin Bagge / brother edited this page Jun 12, 2017 · 4 revisions

Use '[:lower:]' to support accents and foreign alphabets.

Problematic code:

PLATFORM="$(uname -s | tr 'a-z')"

Correct code:

PLATFORM="$(uname -s | tr '[:lower:]')"

ShellCheck

Each individual ShellCheck warning has its own wiki page like SC1000. Use GitHub Wiki's "Pages" feature above to find a specific one, or see Checks.

Clone this wiki locally