Revert "core: Add PHS_VERBOSE env var to skip verbose mode prompts (#13797)" (#13963)

This reverts commit 518b6778e2.
This commit is contained in:
CanbiZ (MickLesk) 2026-04-23 15:30:38 +02:00 committed by GitHub
parent 874d8f300c
commit 8706cd3783
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 23 additions and 51 deletions

View file

@ -940,7 +940,7 @@ is_verbose_mode() {
#
# - Detects if script is running in unattended/non-interactive mode
# - Checks MODE variable first (primary method)
# - Falls back to legacy flags (PHS_MODE, var_unattended)
# - Falls back to legacy flags (PHS_SILENT, var_unattended)
# - Returns 0 (true) if unattended, 1 (false) otherwise
# - Used by prompt functions to auto-apply defaults
#
@ -984,7 +984,7 @@ is_unattended() {
esac
# Legacy fallbacks for compatibility
[[ "${PHS_MODE:-}" == "silent" ]] && return 0
[[ "${PHS_SILENT:-0}" == "1" ]] && return 0
[[ "${var_unattended:-}" =~ ^(yes|true|1)$ ]] && return 0
[[ "${UNATTENDED:-}" =~ ^(yes|true|1)$ ]] && return 0