1
0
mirror of https://github.com/Llewellynvdm/starship.git synced 2024-06-16 07:12:21 +00:00

fix(init): remove quotes in bash init (#2893)

This commit is contained in:
David Knaack 2021-07-17 18:05:07 +02:00 committed by GitHub
parent b1dcd5aecd
commit 31932c2990
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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