enhance regex to allow multiple dots in file names

removed remaining *
This commit is contained in:
Raphael D. Pinheiro
2017-02-23 13:27:50 -03:00
committed by GitHub
parent 088b7f360e
commit 0c98a34094

View File

@@ -54,7 +54,7 @@ certs_set() {
local CRT_FILE=$CRT_FILE_SEARCH
fi
local KEY_FILE_SEARCH=$(find . -not -path '*/\.*' -type f -name "*.key$")
local KEY_FILE_SEARCH=$(find . -not -path '*/\.*' -type f -name ".key$")
local KEY_FILE_COUNT=$(printf "%s" "$KEY_FILE_SEARCH" | grep -c '^')
if [[ $KEY_FILE_COUNT -lt 1 ]]; then
dokku_log_fail "Tar archive is missing .key file"