Skip to content

Commit

Permalink
update: go script to print brew bundle command to stdout
Browse files Browse the repository at this point in the history
  • Loading branch information
Ian committed Oct 6, 2024
1 parent 65a3d90 commit 9925327
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,7 @@ func main() {
homeDir := setHomeDir()
brewfilePath := filepath.Join(homeDir, "dotfiles", "homebrew", "Brewfile")
slog.Info("Installing packages from Brewfile...", slog.String("Brewpath", brewfilePath))
brewOutput, err := script.Exec("brew bundle -v --file=" + brewfilePath).String()
if err != nil {
log.Fatalf("Failed to run Brewfile: %s", err)
}
slog.Info("Brewfile output", slog.String("output", brewOutput))
createExec("brew bundle -v --file=" + brewfilePath)
} else {
slog.Info("Skipping... CI/CD Environment", slog.String("environment", ghaValue), slog.String("path", homebrewPath))
}
Expand Down

0 comments on commit 9925327

Please sign in to comment.