From 94ac00a90c0446f1c60b54210b908b8b3a753857 Mon Sep 17 00:00:00 2001 From: Stefan Zweifel Date: Sat, 5 Nov 2022 11:39:38 +0100 Subject: [PATCH] Cleanup Error Message --- entrypoint.sh | 3 +-- tests/git-auto-commit.bats | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/entrypoint.sh b/entrypoint.sh index d0e31f5..3085fb3 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -50,8 +50,7 @@ _check_if_git_is_available() { echo "::debug::git binary found"; else echo "::error ::git not found. git-auto-commit requires git to be available." - echo "git not found. git-auto-commit requires git to be available." >&2 - exit 1 + exit 1; fi } diff --git a/tests/git-auto-commit.bats b/tests/git-auto-commit.bats index bbec849..79b9ce8 100644 --- a/tests/git-auto-commit.bats +++ b/tests/git-auto-commit.bats @@ -1051,5 +1051,5 @@ cat_github_output() { run git_auto_commit assert_failure; - assert_line "git not found. git-auto-commit requires git to be available." + assert_line "::error ::git not found. git-auto-commit requires git to be available." }