From d48a703bcde4732389f7b303a300239d619aa796 Mon Sep 17 00:00:00 2001 From: Josh Soref Date: Fri, 19 Feb 2021 14:52:10 -0500 Subject: [PATCH] Handle bash globs MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The previous system relied on a different shell's magic for handling `*` / `**` nullglob - If set, Bash allows filename patterns which match no files to expand to a null string, rather than themselves. globstar - If set, the pattern ‘**’ used in a filename expansion context will match all files and zero or more directories and subdirectories. If the pattern is followed by a ‘/’, only directories and subdirectories match. --- entrypoint.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/entrypoint.sh b/entrypoint.sh index eb078cb..b51fd1a 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -2,6 +2,7 @@ # e is for exiting the script automatically if a command fails, u is for exiting if a variable is not set # x would be for showing the commands before they are executed set -eu +shopt -s globstar nullglob # 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)