Skip to content

Commit

Permalink
fix: ensure version output is displayed without comment
Browse files Browse the repository at this point in the history
  • Loading branch information
furan917 committed Nov 24, 2023
1 parent b31cc8d commit e79e230
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ func initializeModuleWhichRequireConfig() {

func main() {
if len(os.Args) > 1 && os.Args[1] == "version" {
//Remove the release me comment from the version output
version = strings.Split(version, "##")[0]
fmt.Printf("Magecomm Version: %s\n", strings.TrimSpace(version))
return
}
Expand Down

0 comments on commit e79e230

Please sign in to comment.