hooks.d/after-upgrade*

This commit is contained in:
pvincent
2026-08-22 19:03:45 +04:00
parent 0b1562929f
commit a4efb182bb
2 changed files with 16 additions and 3 deletions
+15 -3
View File
@@ -134,7 +134,7 @@ function link_config_files {
function force_reload {
bind -f /etc/inputrc 2>/dev/null # arch: dismiss harmless warning
source /etc/profile
# source /etc/profile
}
function in_azerty_zone {
@@ -210,9 +210,20 @@ function create_sudoers {
fi
}
function launch_hooks {
find "$MIAOU_BASH_DIR"/hooks.d -maxdepth 1 -name "after-upgrade*" -type f -executable |
sort |
while read -r hook; do
echo "Processing: $hook"
# shellcheck disable=SC1090
source "$hook"
done
}
# MAIN
source "$MIAOU_BASH_DIR/lib/functions.bash"
source "$MIAOU_BASH_DIR"/lib/functions.bash
assert_root
DISTRO_LIKE=$(fetch_distro_like)
@@ -223,4 +234,5 @@ ghostty_global_config
link_config_files
link_miaou_bash
create_sudoers
force_reload
launch_hooks
# force_reload