From d18f431207d5643735024fbd3f7b0eafc5be0fb6 Mon Sep 17 00:00:00 2001 From: schollii Date: Tue, 23 Jul 2019 09:15:08 -0400 Subject: [PATCH] Support more file name and output what is decrypted --- secrets.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/secrets.sh b/secrets.sh index 599c867..eb458bb 100755 --- a/secrets.sh +++ b/secrets.sh @@ -438,11 +438,11 @@ EOF if [[ $yml =~ ^=.*$ ]]; then yml="${yml/=/}" fi - if [[ $yml =~ ^(.*/)?secrets(\.[^.]+)*\.yaml$ ]] + if [[ $yml =~ ^(.*/)?secrets([_.-][^.]+)*\.yaml$ ]] then decrypt_helper $yml ymldec decrypted cmdopts+=("$ymldec") - [[ $decrypted -eq 1 ]] && decfiles+=("$ymldec") + [[ $decrypted -eq 1 ]] && decfiles+=("$ymldec") && echo "DECRYPTED $yml temporarily" else cmdopts+=("$yml") fi