Skip to content

Commit 5a8164d

Browse files
committed
Improve script output
1 parent 132b1fd commit 5a8164d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

scripts/check/main.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,8 @@ func main() {
9494
totalDuration := time.Since(startTime)
9595
fmt.Println()
9696
if failed {
97-
fmt.Printf("%s❌ Some checks failed. Please fix the issues above.%s\n", colorRed, colorReset)
9897
fmt.Printf("%s⏱️ Total runtime: %s%s\n", colorYellow, formatDuration(totalDuration), colorReset)
98+
fmt.Printf("%s❌ Some checks failed. Please fix the issues above.%s\n", colorRed, colorReset)
9999
if len(allFailedChecks) > 0 {
100100
fmt.Println()
101101
fmt.Println("To rerun a specific check:")
@@ -105,8 +105,8 @@ func main() {
105105
}
106106
os.Exit(1)
107107
} else {
108-
fmt.Printf("%s✅ All checks passed!%s\n", colorGreen, colorReset)
109108
fmt.Printf("%s⏱️ Total runtime: %s%s\n", colorYellow, formatDuration(totalDuration), colorReset)
109+
fmt.Printf("%s✅ All checks passed!%s\n", colorGreen, colorReset)
110110
os.Exit(0)
111111
}
112112
}

0 commit comments

Comments
 (0)