couple of fixes
This commit is contained in:
parent
bfa2ef65af
commit
6ff8902e21
2 changed files with 2 additions and 15 deletions
|
@ -11,12 +11,8 @@ set_lang() {
|
|||
PROMPT_WELCOME="Bienvenido al asistente de instalación de certificados para firma digial."
|
||||
PROMPT_ERR_DEPS="Error, la instalación requiere de los siguientes programas no presentes: "
|
||||
PROMPT_FILE="Seleccione el fichero que corresponde a su sistema operativo."
|
||||
FILENAME="Archivo"
|
||||
FILEDESC="Sistema"
|
||||
PROMPT_SERIAL="Ingrese el número serial impreso al reverso de la tarjeta."
|
||||
PROMPT_ERR_SERIAL="Error al obtener el número serial de la tarjeta, abortando."
|
||||
PROMPT_DIR_FILE="A continuación, deberá seleccionar la carpeta donde quiere que se descargue y se extraigan los contenidos del fichero seleccionado"
|
||||
PROMPT_ERR_DIR_FILE="Error al seleccionar la carpeta de descarga para el fichero, abortando."
|
||||
PROMPT_DOWNLOAD="Descargando desde Centro de Soporte Firma Digital..."
|
||||
PROMPT_DEPS_INSTALL="Instalando dependencias y otros complementos..."
|
||||
PROMPT_PASS_DEPS_INSTALL="Ingrese la contraseña del equipo para instalar los componentes"
|
||||
|
@ -29,12 +25,8 @@ set_lang() {
|
|||
PROMPT_WELCOME="Welcome to the digital signing certificate installation wizard."
|
||||
PROMPT_ERR_DEPS="Error, installation requires the following programs not present: "
|
||||
PROMPT_FILE="Select the file that corresponds to your operating system."
|
||||
FILENAME="File"
|
||||
FILEDESC="System"
|
||||
PROMPT_SERIAL="Enter the serial number printed on the back of the card."
|
||||
PROMPT_ERR_SERIAL="Error obtaining the card serial number, aborting."
|
||||
PROMPT_DIR_FILE="Next, you must select the folder where you want the contents of the selected file to be downloaded and extracted"
|
||||
PROMPT_ERR_DIR_FILE="Error selecting the download folder for the file, aborting."
|
||||
PROMPT_DOWNLOAD="Downloading from the Digital Signature Support Center..."
|
||||
PROMPT_DEPS_INSTALL="Installing dependencies and other components..."
|
||||
PROMPT_PASS_DEPS_INSTALL="Enter your computer password to install components"
|
||||
|
@ -47,12 +39,8 @@ set_lang() {
|
|||
PROMPT_WELCOME="Bienvenue dans l'assistant d'installation du certificat de signature."
|
||||
PROMPT_ERR_DEPS="Erreur, l'installation requise des programmes suivants ne présente pas: "
|
||||
PROMPT_FILE="Sélectionnez le fichier qui correspond à votre système d'exploitation."
|
||||
FILENAME="Fichier"
|
||||
FILEDESC="Système"
|
||||
PROMPT_SERIAL="Entrez le numéro de série imprimé au dos de la carte."
|
||||
PROMPT_ERR_SERIAL="Erreur d'obtention du numéro de série de la carte, abandon."
|
||||
PROMPT_DIR_FILE="Ensuite, vous devez sélectionner le dossier dans lequel vous souhaitez que le contenu du fichier sélectionné soit téléchargé et extrait"
|
||||
PROMPT_ERR_DIR_FILE="Erreur lors de la sélection du dossier de téléchargement du fichier, abandon."
|
||||
PROMPT_DOWNLOAD="Téléchargement du fichier depuis le Centre de support des signatures numériques..."
|
||||
PROMPT_DEPS_INSTALL="Installation des dépendances et d'autres composants..."
|
||||
PROMPT_PASS_DEPS_INSTALL="Entrez le mot de passe de votre ordinateur pour installer les composants"
|
||||
|
|
|
@ -59,7 +59,7 @@ if [ "$MENU" = "zenity" ] ; then
|
|||
( ( ( (install_certs; echo $? >&3) |
|
||||
zenity --title "$TITLE" --text "$PROMPT_DEPS_INSTALL" --progress --pulsate --auto-close >&4) 3>&1 ) |
|
||||
(read -r xs; exit "$xs") ) 4>&1
|
||||
#install_certs # Just run this instead to see debug info
|
||||
#install_certs # Just run this instead to see debug info # DEBUG
|
||||
|
||||
# install_certs fails (exit code != 0)
|
||||
[ "$?" != "0" ] && zenity --title "$TITLE" --text "$PROMPT_ERR_DEPS_INSTALL" --error && exit 1
|
||||
|
@ -102,8 +102,7 @@ elif [ "$MENU" = "term" ] ; then
|
|||
# Install dependencies, components and
|
||||
# certificates according to OS
|
||||
term_prompt info "$PROMPT_DEPS_INSTALL" && echo
|
||||
install_certs "$SAVE_FILE"
|
||||
[ "$?" != "0" ] && term_prompt error "$PROMPT_ERR_DEPS_INSTALL" && exit 1
|
||||
! install_certs "$SAVE_FILE" && term_prompt error "$PROMPT_ERR_DEPS_INSTALL" && exit 1
|
||||
|
||||
term_prompt info "$PROMPT_END_SUCCESS" && echo
|
||||
|
||||
|
|
Loading…
Reference in a new issue