Skip to content

Commit

Permalink
Fix zsh word splitting for curl "--retry 3"
Browse files Browse the repository at this point in the history
  • Loading branch information
alexhudspith authored and rami3l committed Oct 10, 2023
1 parent 900d3d6 commit 3d6f8ea
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions rustup-init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ has_local() {

has_local 2>/dev/null || alias local=typeset

# zsh does not split words by default, Required for curl retry arguments below.
if [ -n "$ZSH_VERSION" ]; then
setopt shwordsplit
fi

set -u

Expand Down

0 comments on commit 3d6f8ea

Please sign in to comment.