Skip to content

Commit 6307970

Browse files
committed
Remove trailing newlines and bump version
1 parent 7eab11b commit 6307970

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -431,6 +431,8 @@ create GitHub issues for security-related doubts or problems.
431431

432432
### Snapshot
433433

434+
### 4.0.2
435+
434436
- Don't use CliConnection at all, just call `cf ssh` directly
435437

436438
### 4.0.1

cf_cli_java_plugin.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -812,7 +812,7 @@ func (c *JavaPlugin) execute(_ plugin.CliConnection, args []string) (string, err
812812
c.logVerbosef("Executing command: %v", cmdArgs)
813813
cmd := exec.Command(cmdArgs[0], cmdArgs[1:]...)
814814
outputBytes, err := cmd.CombinedOutput()
815-
output := string(outputBytes)
815+
output := strings.TrimRight(string(outputBytes), "\n")
816816
if err != nil {
817817
if err.Error() == "unexpected EOF" {
818818
return "", fmt.Errorf("Command failed")
@@ -963,7 +963,7 @@ func (c *JavaPlugin) GetMetadata() plugin.PluginMetadata {
963963
Version: plugin.VersionType{
964964
Major: 4,
965965
Minor: 0,
966-
Build: 1,
966+
Build: 2,
967967
},
968968
MinCliVersion: plugin.VersionType{
969969
Major: 4,

0 commit comments

Comments
 (0)