Skip to content

Commit

Permalink
fix(init): remove quotes in bash init (starship#2893)
Browse files Browse the repository at this point in the history
  • Loading branch information
davidkna authored Jul 17, 2021
1 parent b1dcd5a commit 31932c2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/init/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -135,9 +135,9 @@ pub fn init_stub(shell_name: &str) -> io::Result<()> {
local minor="${{BASH_VERSINFO[1]}}"
if ((major > 4)) || {{ ((major == 4)) && ((minor >= 1)); }}; then
source <("{0}" init bash --print-full-init)
source <({0} init bash --print-full-init)
else
source /dev/stdin <<<"$("{0}" init bash --print-full-init)"
source /dev/stdin <<<"$({0} init bash --print-full-init)"
fi
}}
__main
Expand Down

0 comments on commit 31932c2

Please sign in to comment.