From 1e7992c9dd3db597f2dc4df06d22d8ca129dd5e6 Mon Sep 17 00:00:00 2001 From: pvincent Date: Sat, 22 Aug 2026 20:28:31 +0400 Subject: [PATCH] real latest install --- lib/initiate.bash | 11 +++-------- lib/self-upgrade.bash | 1 + 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/lib/initiate.bash b/lib/initiate.bash index 09e0780..6a3fc26 100644 --- a/lib/initiate.bash +++ b/lib/initiate.bash @@ -132,11 +132,6 @@ function link_config_files { link_etc inputrc # last command required to detect successful installation } -function force_reload { - bind -f /etc/inputrc 2>/dev/null # arch: dismiss harmless warning - # source /etc/profile -} - function in_azerty_zone { [[ -L /etc/localtime ]] || return 4 @@ -217,9 +212,10 @@ function launch_hooks { echo "Processing: $hook" # shellcheck disable=SC1090 - if ! source "$hook"; then - >&2 echo 'WARNING: hook failure, bypassed' + if ! miaou-bash "$hook" 3>/dev/null; then + echo 'WARNING: hook failure, bypassed' fi + echo ----------------- done } @@ -237,4 +233,3 @@ link_config_files link_miaou_bash create_sudoers launch_hooks -# force_reload diff --git a/lib/self-upgrade.bash b/lib/self-upgrade.bash index ef1450c..a43d786 100644 --- a/lib/self-upgrade.bash +++ b/lib/self-upgrade.bash @@ -57,6 +57,7 @@ function perform_upgrade { if source /tmp/miaou-bash-install.sh upgrade; then if [[ $(find "$backup"/hooks.d -maxdepth 1 -type f | wc -l) -gt 0 ]]; then sudo mv "$backup"/hooks.d/* "$MIAOU_BASH_DIR"/hooks.d/ + sudo miaou-bash "$MIAOU_BASH_DIR"/lib/initiate.bash fi sudo rm -rf "$backup" cat <