mirror of
https://github.com/spf13/cobra
synced 2024-11-24 14:47:12 +00:00
Merge pull request #256 from sttts/sttts-fix-bash-escaping
Fix escaping of % in bash code strings
This commit is contained in:
commit
c678ff029e
1 changed files with 1 additions and 1 deletions
|
@ -22,7 +22,7 @@ func preamble(out io.Writer, name string) error {
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
_, err = fmt.Fprintf(out, `
|
_, err = fmt.Fprint(out, `
|
||||||
__debug()
|
__debug()
|
||||||
{
|
{
|
||||||
if [[ -n ${BASH_COMP_DEBUG_FILE} ]]; then
|
if [[ -n ${BASH_COMP_DEBUG_FILE} ]]; then
|
||||||
|
|
Loading…
Reference in a new issue