[IMPROVED] Mostrar error de SOPS no instalado usando dialog en cversadm_token.sh
- Modificar check_sops_installed() para usar dialog en lugar de echo - Usar dialog_error_box para mostrar mensajes de error en la interfaz gráfica - Mejorar mensaje de error con instrucciones sobre cómo instalar SOPS - Mantener consistencia con el estilo de interfaz del resto del script 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
parent
c38237b19f
commit
c9114350ed
1 changed files with 3 additions and 1 deletions
|
@ -60,7 +60,9 @@ apps_title="${cvmsg_000}"
|
|||
# Función para verificar si SOPS está instalado
|
||||
check_sops_installed() {
|
||||
if ! command -v sops &> /dev/null; then
|
||||
echo "Error: SOPS no está instalado. Por favor, instale SOPS para continuar."
|
||||
# Mostrar el error usando dialog en lugar de echo
|
||||
dialog_error_box "${head_error}" "SOPS no está instalado. Por favor, ejecute bin/bootstrap.sh para instalar las herramientas necesarias."
|
||||
clear
|
||||
exit 1
|
||||
fi
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue