mirror of
https://github.com/starship/starship.git
synced 2026-06-22 02:02:12 +07:00
fix(init): remove quotes in bash init (#2893)
This commit is contained in:
+2
-2
@@ -135,9 +135,9 @@ pub fn init_stub(shell_name: &str) -> io::Result<()> {
|
|||||||
local minor="${{BASH_VERSINFO[1]}}"
|
local minor="${{BASH_VERSINFO[1]}}"
|
||||||
|
|
||||||
if ((major > 4)) || {{ ((major == 4)) && ((minor >= 1)); }}; then
|
if ((major > 4)) || {{ ((major == 4)) && ((minor >= 1)); }}; then
|
||||||
source <("{0}" init bash --print-full-init)
|
source <({0} init bash --print-full-init)
|
||||||
else
|
else
|
||||||
source /dev/stdin <<<"$("{0}" init bash --print-full-init)"
|
source /dev/stdin <<<"$({0} init bash --print-full-init)"
|
||||||
fi
|
fi
|
||||||
}}
|
}}
|
||||||
__main
|
__main
|
||||||
|
|||||||
Reference in New Issue
Block a user