fix: remove secret files

This commit is contained in:
Gustavo "Guz" L. de Mello
2024-05-04 14:24:03 -03:00
parent 0fc5bce28d
commit 0cbd48e50e

View File

@@ -58,10 +58,10 @@ function remove_decrypted_secrets() {
set -e
pushd "$FLAKE_DIR" > /dev/null
echo_info "$PREFIX - Removing descrypted files" \
git reset ./secrets/*.decrypted.*
for f in ./secrets/*.decrypted.*; do
echo_info "$PREFIX - Removing descrypted files"
for f in "$FLAKE_DIR"/secrets/*.decrypted.*; do
echo_info "$PREFIX - Removing descrypted files. file=$f"
git reset "$f"
rm "$f"
done