forked from ungleich-public/cdist
move out all functions that do not only print a value from bin/cdist-config
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
This commit is contained in:
parent
a5564850ce
commit
2b955b09bc
3 changed files with 58 additions and 19 deletions
|
|
@ -165,11 +165,6 @@ for __cdist_lib in $__cdist_core_dir/*; do
|
|||
. "$__cdist_lib"
|
||||
done
|
||||
|
||||
___cdist_lib_path()
|
||||
{
|
||||
echo $_
|
||||
}
|
||||
|
||||
|
||||
################################################################################
|
||||
# Cache
|
||||
|
|
@ -213,7 +208,6 @@ __cdist_object_base_dir()
|
|||
echo "${__cdist_out_object_dir}/$1"
|
||||
}
|
||||
|
||||
|
||||
__cdist_object_id_from_object()
|
||||
{
|
||||
echo "${1#*/}"
|
||||
|
|
@ -290,19 +284,6 @@ __cdist_remote_type_explorer_dir()
|
|||
################################################################################
|
||||
# Traps
|
||||
#
|
||||
__cdist_tmp_removal()
|
||||
{
|
||||
rm -rf "${__cdist_tmp_dir}"
|
||||
}
|
||||
|
||||
# Does not work in children, will be called again in every script!
|
||||
# Use only in interactive "front end" scripts
|
||||
__cdist_kill_on_interrupt()
|
||||
{
|
||||
__cdist_tmp_removal
|
||||
kill 0
|
||||
exit 1
|
||||
}
|
||||
|
||||
# Remove tempfiles at normal exit
|
||||
trap __cdist_tmp_removal EXIT
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue