simplify it.sh

This commit is contained in:
WebFreak001 2023-09-24 14:34:10 +02:00 committed by Jan Jurzitza
parent 6491d792f5
commit fc1699bb97
1 changed files with 2 additions and 3 deletions

View File

@ -6,11 +6,10 @@ function section {
e=$'\e' e=$'\e'
if [ ! -z "${GITHUB_ACTION:-}" ]; then if [ ! -z "${GITHUB_ACTION:-}" ]; then
echo "::endgroup::" echo "::endgroup::"
fi
if [ ! -z "${GITHUB_ACTION:-}" ]; then
echo "::group::$@" echo "::group::$@"
fi else
echo "$e[1m$@$e[m" echo "$e[1m$@$e[m"
fi
} }
function error { function error {