Skip to content

Commit

Permalink
Small changes, doc improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
mikusaq committed Feb 19, 2025
1 parent 09aa3ff commit cb380a2
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
3 changes: 1 addition & 2 deletions bap-builder/PackageMode.go
Original file line number Diff line number Diff line change
Expand Up @@ -246,17 +246,16 @@ func BuildPackage(cmdLine *BuildPackageCmdLineArgs, contextPath string) error {
}

handleRemover := bringauto_process.SignalHandlerAddHandler(repo.RestoreAllChanges)
defer handleRemover()
if *cmdLine.All {
err = buildAllPackages(cmdLine, contextPath, platformString, repo)
} else {
err = buildSinglePackage(cmdLine, contextPath, platformString, repo)
}
if err != nil {
handleRemover()
return err
}
err = repo.CommitAllChanges()
handleRemover()
return err
}

Expand Down
3 changes: 1 addition & 2 deletions modules/bringauto_log/Handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,9 @@ import (
"strings"
)

// Color codes constants
// ANSI Color codes constants
const (
red = 31
blue = 34
orange = 33
white = 97
)
Expand Down
2 changes: 1 addition & 1 deletion modules/bringauto_repository/GitLFSRepository.go
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ func (lfs *GitLFSRepository) gitIsStatusEmpty() bool {
func (lfs *GitLFSRepository) gitAddAll() error {
var ok, _ = lfs.prepareAndRun([]string{
"add",
"*",
".",
},
)
if !ok {
Expand Down

0 comments on commit cb380a2

Please sign in to comment.