enhance regex to allow multiple dots in file names
removed remaining *
This commit is contained in:
committed by
GitHub
parent
088b7f360e
commit
0c98a34094
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user