From 0c98a340949cac1fcc7d7091fba2763335c29bbc Mon Sep 17 00:00:00 2001 From: "Raphael D. Pinheiro" Date: Thu, 23 Feb 2017 13:27:50 -0300 Subject: [PATCH] enhance regex to allow multiple dots in file names removed remaining * --- plugins/certs/subcommands/add | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/certs/subcommands/add b/plugins/certs/subcommands/add index 69ba70721..2cd29fe06 100755 --- a/plugins/certs/subcommands/add +++ b/plugins/certs/subcommands/add @@ -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"