From cdba56a29525ba9c4ba5e82dcb7901cdc3bccd9a Mon Sep 17 00:00:00 2001 From: Jason Carver Date: Wed, 24 Jan 2018 16:24:31 -0800 Subject: [PATCH] skip replacing variables inside .git/* files --- fill_template_vars.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fill_template_vars.sh b/fill_template_vars.sh index 236733a..d4dba88 100755 --- a/fill_template_vars.sh +++ b/fill_template_vars.sh @@ -5,7 +5,7 @@ set -o nounset set -o pipefail # List of all non-executable files -TEMPLATE_FILES=$(find . ! -perm -u=x -type f) +TEMPLATE_FILES=$(find . ! -perm -u=x -type f | grep -v "\.git") echo "What is your python module name?" read MODULE_NAME