Skip to content

Avoid adding duplicates to PATH

Without this, each time the env script gets executed it will add a copy of the paths to PATH. This can happen when shells are nested.

The "case" trick was inspired by: https://github.com/rust-lang/rustup/blob/184a899f4529f27e23eca537a5979c530ff7fa26/src/cli/self_update/env.sh

Merge request reports