[IMPROVED] Cambiar sufijo de archivos a .totp.yaml en qr_secret.sh
- Modificar sufijo de archivos de .sops.yaml a .totp.yaml para mejor contextualización - Actualizar mensajes de éxito para reflejar el nuevo formato de nombre de archivo - Mantener el mismo mecanismo de encriptación con SOPS 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
parent
57f59ddffe
commit
78c5a03f17
1 changed files with 2 additions and 2 deletions
|
@ -179,7 +179,7 @@ extract_secret() {
|
|||
save_encrypted_secret() {
|
||||
local name="$1"
|
||||
local secret="$2"
|
||||
local output_file="${DEVELOPER_DIR}/${name}.sops.yaml"
|
||||
local output_file="${DEVELOPER_DIR}/${name}.totp.yaml"
|
||||
|
||||
# Crear archivo YAML temporal con el secreto
|
||||
local temp_file=$(mktemp)
|
||||
|
@ -235,7 +235,7 @@ main() {
|
|||
# Guardar secreto encriptado
|
||||
save_encrypted_secret "$output_name" "$secret"
|
||||
if [ $? -eq 0 ]; then
|
||||
dialog_error_box "Éxito" "Secreto guardado correctamente en ${DEVELOPER_DIR}/${output_name}.sops.yaml"
|
||||
dialog_error_box "Éxito" "Secreto guardado correctamente en ${DEVELOPER_DIR}/${output_name}.totp.yaml"
|
||||
else
|
||||
dialog_error_box "Error" "No se pudo guardar el secreto encriptado."
|
||||
clear
|
||||
|
|
Loading…
Reference in a new issue