From 01ffd8c6f6b84adf85fdcdf0768b285bb589b1af Mon Sep 17 00:00:00 2001 From: Harrison Grodin Date: Sat, 15 Aug 2020 22:11:45 -0400 Subject: [PATCH] Only check status of files matching file_pattern --- entrypoint.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/entrypoint.sh b/entrypoint.sh index 1fe4d4d..f51521a 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -33,7 +33,7 @@ _switch_to_repository() { } _git_is_dirty() { - [ -n "$(git status -s)" ] + [ -n "$(git status -s -- $INPUT_FILE_PATTERN)" ] } _switch_to_branch() {