export more functions (can be used un subshell or interactive internal shell)

This commit is contained in:
levasseur
2021-09-21 14:50:06 +02:00
parent fc2cecab82
commit dd51a48869
3 changed files with 5 additions and 1 deletions

View File

@@ -28,6 +28,7 @@ exec_serv()
prnt I "Lancement de la commande $command du services $svcname" prnt I "Lancement de la commande $command du services $svcname"
$lineexec $lineexec
} }
export exec_serv
# ------------------------------------------------------------------------------ # ------------------------------------------------------------------------------

View File

@@ -66,6 +66,7 @@ Fichiers de configuration :
EOF EOF
} }
export -f disp_help
# ------------------------------------------------------------------------------ # ------------------------------------------------------------------------------
@@ -85,6 +86,7 @@ show_version()
echo -e "\n${BYellow}Attention :$DEFAULTCOL Ce script requiert les droits d'administration pour fonctionner." echo -e "\n${BYellow}Attention :$DEFAULTCOL Ce script requiert les droits d'administration pour fonctionner."
fi fi
} }
export -f show_version
# ------------------------------------------------------------------------------ # ------------------------------------------------------------------------------
@@ -93,6 +95,7 @@ get_mod_name()
{ {
echo $(basename $1 | cut -f 1 -d '.') echo $(basename $1 | cut -f 1 -d '.')
} }
export -f get_mod_name
# EOF # EOF

View File

@@ -150,6 +150,7 @@ load_configuration()
} }
export -f load_configuration export -f load_configuration
# ------------------------------------------------------------------------------ # ------------------------------------------------------------------------------
# Do deeper command line analysis to detect unconsistancies # Do deeper command line analysis to detect unconsistancies
process_commandline_and_vars() process_commandline_and_vars()
@@ -196,4 +197,3 @@ process_commandline_and_vars()
export -f process_commandline_and_vars export -f process_commandline_and_vars
# EOF # EOF