Commit 224b40ff authored by Eric Coissac's avatar Eric Coissac

Adds log during the cleaning steps

parent 6fef97bf
Pipeline #16 skipped
......@@ -17,10 +17,11 @@ newstack __LECABASHLIB_ATEXITSTACK__
function __atexit__manager__() {
echo coucou
loginfo "Cleanning the resources"
while popvalue __LECABASHLIB_ATEXITSTACK__ cmd ; do
eval "$cmd"
loginfo "Done."
function registeratexit() {
......@@ -24,10 +24,9 @@ __LECABASHLIB_TMPBASENAME__="__tmp__$(whoami).${$}__lecabashlib__.XXXXX"
function __remove_tmp__() {
echo "@@${__LECABASHLIB_TMPDIRSTACK__[@]}@@"
loginfo "Cleaning temporary directories"
while popvalue __LECABASHLIB_TMPDIRSTACK__ directory ; do
echo coucou tmp
while popvalue __LECABASHLIB_TMPDIRSTACK__ directory ; do
loginfo "Removing tempdir : $directory"
rm -rf "$directory"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment