Skip to content
Snippets Groups Projects

Avoid adding duplicates to PATH

Merged Rufflewind requested to merge Rufflewind/ghcup-hs:Rufflewind-master-patch-04223 into master

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

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
Please register or sign in to reply
Loading