mirror of
https://github.com/spf13/cobra.git
synced 2024-11-15 09:48:19 -07:00
Fix escaping of % in bash code strings
This commit is contained in:
parent
966e6048eb
commit
a23d903a12
@ -22,7 +22,7 @@ func preamble(out io.Writer, name string) error {
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
_, err = fmt.Fprintf(out, `
|
||||
_, err = fmt.Fprint(out, `
|
||||
__debug()
|
||||
{
|
||||
if [[ -n ${BASH_COMP_DEBUG_FILE} ]]; then
|
||||
|
Loading…
Reference in New Issue
Block a user