main: externalized prepost actions loading
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user