mirror of
https://github.com/stornic56/openvino-runtime-simple-installer.git
synced 2026-10-31 13:08:06 +00:00
fix
An issue with the verification and extraction of the .tgz file was resolved.
This commit is contained in:
+11
-4
@@ -1,9 +1,16 @@
|
||||
#!/bin/bash
|
||||
# ------------------------------------------------------------------------------
|
||||
# Common printing functions for all installer scripts.
|
||||
# Dual output: colores ANSI a stdout + texto plano (sin codigos) a $LOG_FILE.
|
||||
# El log es AUXILIAR: su fallo de escritura no debe abortar la operacion
|
||||
# (p. ej. log root-owned + doctor sin root) — por eso el append va guardado.
|
||||
# ------------------------------------------------------------------------------
|
||||
|
||||
print_step() { echo -e "\n\033[1;34m>>>\033[0m \033[1m$1\033[0m"; }
|
||||
print_substep() { echo -e "\033[1;32m =>\033[0m $1"; }
|
||||
print_warning() { echo -e "\033[1;33m [AVISO]\033[0m $1"; }
|
||||
print_error() { echo -e "\033[1;31m [ERROR]\033[0m $1"; }
|
||||
LOG_FILE="${LOG_FILE:-install.log}"
|
||||
|
||||
_log_plain() { printf '%s\n' "$1" >> "$LOG_FILE" 2>/dev/null || true; }
|
||||
|
||||
print_step() { echo -e "\n\033[1;34m>>>\033[0m \033[1m$1\033[0m"; _log_plain ""; _log_plain ">>> $1"; }
|
||||
print_substep() { echo -e "\033[1;32m =>\033[0m $1"; _log_plain " => $1"; }
|
||||
print_warning() { echo -e "\033[1;33m [WARNING]\033[0m $1"; _log_plain " [WARNING] $1"; }
|
||||
print_error() { echo -e "\033[1;31m [ERROR]\033[0m $1"; _log_plain " [ERROR] $1"; }
|
||||
|
||||
Reference in New Issue
Block a user