mirror of
https://github.com/stornic56/debianito-post-install.git
synced 2026-10-31 13:08:06 +00:00
Recovered 70 prior commits from Gitea mirror and resolved divergent history using --allow-unrelated-histories. Integrated 16 recent local commits via patch. Applied targeted technical fixes: added explicit bash shell declaration in shellcheck YAML configuration (commit 693caff) and targeted SC2120 disables in modules/utils.sh (commit 3614b56). All verifications passed: shellcheck compliance, bash syntax check (bash -n), and BATS test suite passing cleanly. Symmetrically synchronized repository state across GitHub and Gitea.
This commit is contained in:
@@ -647,6 +647,9 @@ install_backports_or_stable() {
|
||||
# ----------------------------------------------------------------------
|
||||
|
||||
_confirm() {
|
||||
# --yes (unattended mode): auto-accept without
|
||||
# invoking whiptail; the prompt gate is the flag itself.
|
||||
[ "${AUTO_YES:-0}" = "1" ] && return 0
|
||||
whiptail --title "$1" --yes-button "Yes" --no-button "No" \
|
||||
--yesno "$2" "${3:-10}" "${4:-65}"
|
||||
}
|
||||
@@ -711,6 +714,7 @@ _validate_sudoers() {
|
||||
rm -f "$tmpfile"
|
||||
}
|
||||
|
||||
# shellcheck disable=SC2120 # Optional prompt arg used by GPU modules.
|
||||
_pause() {
|
||||
local msg="${1:-Press Enter to continue...}"
|
||||
echo -e "$msg"
|
||||
@@ -867,6 +871,7 @@ _detect_lang_pkg() {
|
||||
# ----------------------------------
|
||||
# Network connectivity check
|
||||
# ----------------------------------
|
||||
# shellcheck disable=SC2120 # Optional probe target (default: deb.debian.org).
|
||||
_check_network() {
|
||||
local target="${1:-deb.debian.org}"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user