Skip to content

Commit

Permalink
Avoid escaping newlines (#1942)
Browse files Browse the repository at this point in the history
  • Loading branch information
wata727 committed Dec 17, 2023
1 parent 7cb16fb commit 95926c2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cmd/init.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ func (cli *CLI) init(opts Options) int {

_, err := plugin.FindPluginPath(installCfg)
if os.IsNotExist(err) {
fmt.Fprintf(cli.outStream, `Installing "%s" plugin...\n`, pluginCfg.Name)
fmt.Fprintf(cli.outStream, "Installing \"%s\" plugin...\n", pluginCfg.Name)

sigchecker := plugin.NewSignatureChecker(installCfg)
if !sigchecker.HasSigningKey() {
Expand All @@ -57,15 +57,15 @@ func (cli *CLI) init(opts Options) int {
return fmt.Errorf("Failed to install a plugin; %w", err)
}

fmt.Fprintf(cli.outStream, `Installed "%s" (source: %s, version: %s)\n`, pluginCfg.Name, pluginCfg.Source, pluginCfg.Version)
fmt.Fprintf(cli.outStream, "Installed \"%s\" (source: %s, version: %s)\n", pluginCfg.Name, pluginCfg.Source, pluginCfg.Version)
continue
}

if err != nil {
return fmt.Errorf("Failed to find a plugin; %w", err)
}

fmt.Fprintf(cli.outStream, `Plugin "%s" is already installed\n`, pluginCfg.Name)
fmt.Fprintf(cli.outStream, "Plugin \"%s\" is already installed\n", pluginCfg.Name)
}

if opts.Recursive && !found {
Expand Down

0 comments on commit 95926c2

Please sign in to comment.