Skip to content

Commit

Permalink
force reset colors
Browse files Browse the repository at this point in the history
  • Loading branch information
Enrico Comiti committed Nov 22, 2021
1 parent 348688f commit e494d5c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .sdlc/check
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ PRJ_HOME="$(cd -P "$(dirname "$SDLC_DIR")" && pwd)"

git_hash="$(git rev-parse HEAD)"
git_message=$(git log --format=%B -n 1 "${git_hash}")
echo "git message ${git_message}"
echo "Last commit message ${git_message}"

source "${SDLC_DIR}/config"
app_name="${REPO_NAME}"
Expand Down
5 changes: 4 additions & 1 deletion cmd/runp/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ func listenForShutdown(ch <-chan os.Signal) {
for _, process := range runningProcesses {
ui.WriteLinef("Stop running process %s", process.ID())
cmd := process.StopCommand()

core.ResetColor()
duration := process.StopTimeout()
if err := cmd.Start(); err != nil {
ui.WriteLinef("Error calling stop command for process %s: %v", process.ID(), err)
Expand All @@ -56,6 +56,7 @@ func listenForShutdown(ch <-chan os.Signal) {
} else {
ui.Debugf("Stopped %s with no error\n", process.ID())
}
core.ResetColor()

}
core.ResetColor()
Expand All @@ -68,6 +69,8 @@ func main() {
signal.Notify(ch, os.Interrupt, os.Kill)
go listenForShutdown(ch)

core.ResetColor()

app := cli.NewApp()
app.Name = "runp"
app.Version = appVersion
Expand Down

0 comments on commit e494d5c

Please sign in to comment.