mirror of
https://github.com/stornic56/openvino-runtime-simple-installer.git
synced 2026-10-31 13:08:06 +00:00
feat: subcomando uninstall
- core/uninstall.sh: run_uninstall() — confirmacion interactiva obligatoria (--yes la omite), rm -rf del symlink O directorio real + /opt/intel/openvino_2026.* (rm -rf no sigue symlinks), --purge-drivers opcional (dpkg -r de los 6 paquetes, best-effort con aviso) - main.sh: dispatch en el mismo case que doctor (antes del root check); run_uninstall aplica su propio check de root
This commit is contained in:
@@ -18,10 +18,17 @@ source "$CORE_DIR/common.sh"
|
||||
# Subcommands (before the root check: doctor is a post-install user verification)
|
||||
case "${1:-}" in
|
||||
doctor)
|
||||
shift
|
||||
source "$CORE_DIR/doctor.sh"
|
||||
run_doctor_checks
|
||||
exit 0
|
||||
;;
|
||||
uninstall)
|
||||
shift
|
||||
source "$CORE_DIR/uninstall.sh"
|
||||
run_uninstall "$@"
|
||||
exit 0
|
||||
;;
|
||||
esac
|
||||
|
||||
# Option parsing (before the root check: parsing needs no privileges)
|
||||
|
||||
Reference in New Issue
Block a user