Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove trailing new line for version string #48

Merged
merged 1 commit into from
Mar 4, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ func cmd() *cobra.Command {

// Check if CTL version is the latest version by comparing local CTL version with remote version tags from GitHub
var WarningColor = "\033[1;33m%s\033[0m"
out, err := exec.Command("bash", "-c", "git ls-remote --tags https://github.com/wish/ctl.git | tail -n 1 | cut -d'/' -f3 | cut -d'^' -f1").Output()
out, err := exec.Command("bash", "-c", "git ls-remote --tags https://github.com/wish/ctl.git | tail -n 1 | cut -d'/' -f3 | cut -d'^' -f1 | tr -d '\n'").Output()
if err != nil {
fmt.Printf("Unable to retrieve remote CTL tags for version comparison. Error: %s\n",err)
}
Expand Down
2 changes: 1 addition & 1 deletion cmd/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
)

// Version set default value
var Version = "v13.0.9"
var Version = "v13.0.10"

func versionCmd(*client.Client) *cobra.Command {
return &cobra.Command{
Expand Down