fix(brew): Incorrect profile.d/brew.sh file $- text writing
`$-` is now no longer writing random character, but `$-` instead to the file.
This commit is contained in:
parent
8e582d701b
commit
4d53e8159b
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue