main: externalized prepost actions loading
This commit is contained in:
6
init.sh
6
init.sh
@@ -122,11 +122,7 @@ load_autoconf
|
|||||||
|
|
||||||
load_configuration
|
load_configuration
|
||||||
|
|
||||||
# Load pre and post actions for package manager
|
load_prepost_actions
|
||||||
for prepost in $MYPATH/prepost.d/*.sh; do
|
|
||||||
. $prepost
|
|
||||||
done
|
|
||||||
unset prepost
|
|
||||||
|
|
||||||
process_commandline_and_vars
|
process_commandline_and_vars
|
||||||
|
|
||||||
|
|||||||
@@ -255,6 +255,20 @@ load_configuration()
|
|||||||
export -f 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
|
# Do deeper command line analysis to detect unconsistancies
|
||||||
process_commandline_and_vars()
|
process_commandline_and_vars()
|
||||||
|
|||||||
Reference in New Issue
Block a user