Skip to content

Commit

Permalink
Update entrypoint.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
Tonye Jack authored Jul 31, 2020
1 parent 6aa0bac commit 7bb0d4f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

set -e

GITHUB_TOKEN=$1
FILES=$2

CHANGED_FILES=()
Expand All @@ -11,7 +10,7 @@ for path in ${FILES}
do
echo "Checking for file changes: \"${path}\"..."
MODIFIED_FILE=$(git diff --diff-filter=ACM --name-only | grep -E "(${path})" || true)
if [[ ! -z ${MODIFIED_FILE} ]]; then
if [[ -n ${MODIFIED_FILE} ]]; then
CHANGED_FILES+=("${path}")
fi
done
Expand Down

0 comments on commit 7bb0d4f

Please sign in to comment.