From ded507f15f3007e2d54b7c341a2fcd14f4f00029 Mon Sep 17 00:00:00 2001 From: Conrad Date: Wed, 6 May 2020 10:25:44 +0200 Subject: [PATCH] Adjusted function blocks --- entrypoint.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/entrypoint.sh b/entrypoint.sh index bb00e5d..a0f005b 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -5,7 +5,7 @@ set -eu # FUNCTIONS # Function for setting up git env in the docker container (copied from https://github.com/stefanzweifel/git-auto-commit-action/blob/master/entrypoint.sh) -_git_setup ( ) { +_git_setup { cat <<- EOF > $HOME/.netrc machine github.com login $GITHUB_ACTOR @@ -21,7 +21,7 @@ EOF } # Checks if any files are changed -_git_changed() { +_git_changed { [[ -n "$(git status -s)" ]] }