main: externalized prepost actions loading

This commit is contained in:
levasseur committed 2022-01-07 17:40:31 +01:00
1 parent b0e9cda058
commit bf5adbadf5
2 files changed
+15 -5

No files matched your search

+1 -5
View File
@@ -122,11 +122,7 @@ load_autoconf
load_configuration
# Load pre and post actions for package manager
for prepost in $MYPATH/prepost.d/*.sh; do
. $prepost
done
unset prepost
load_prepost_actions
process_commandline_and_vars
+14
View File
@@ -255,6 +255,20 @@ load_configuration()
export -f load_configuration
# ------------------------------------------------------------------------------
# Load pre and post actions for package manager
load_prepost_actions()
{
local prepost=
for prepost in $MYPATH/prepost.d/*.sh; do
prnt I "Loading prepost actions in $prepost ..."
. $prepost
done
unset prepost
}
export -f load_prepost_actions
# ------------------------------------------------------------------------------
# Do deeper command line analysis to detect unconsistancies
process_commandline_and_vars()