From 2794f9277d0470dbdc32886d6cfc37581e570093 Mon Sep 17 00:00:00 2001 From: Conrad Date: Mon, 11 Jul 2022 13:41:14 +0200 Subject: [PATCH] Adjusted git check --- entrypoint.sh | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/entrypoint.sh b/entrypoint.sh index 16bfcf3..855e58d 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -20,11 +20,6 @@ EOF git config --global user.name "GitHub Action" } -# Checks if any files are changed -_git_changed() { - [[ -n "$(git status -s)" ]] -} - echo "Installing dependencies..." pip3 install -U pip wheel pygraphviz pip3 install -r $INPUT_PIP_PATH @@ -34,7 +29,7 @@ cd $INPUT_PROJECT_PATH python3 manage.py graph_models -a -g -o $INPUT_OUTPUT_PATH # To keep runtime good, just continue if something was changed -if _git_changed; +if [[ `$(git status -s)` ]]; then # Calling method to configure the git environemnt _git_setup