Skip to content

Commit

Permalink
fix(brew): Incorrect profile.d/brew.sh file $- text writing
Browse files Browse the repository at this point in the history
`$-` is now no longer writing random character, but `$-` instead to the file.
  • Loading branch information
fiftydinar authored Oct 11, 2024
1 parent 8e582d7 commit 4d53e81
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/brew/brew.sh
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ if [[ ! -f "/etc/profile.d/brew.sh" ]]; then
echo "Apply brew path export fix, to solve path conflicts between system & brew programs with same name"
cat > /etc/profile.d/brew.sh <<EOF
#!/usr/bin/env bash
[[ -d /home/linuxbrew/.linuxbrew && $- == *i* ]] && eval "\$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"
[[ -d /home/linuxbrew/.linuxbrew && \$- == *i* ]] && eval "\$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"
EOF
fi

Expand Down

0 comments on commit 4d53e81

Please sign in to comment.