Skip to content
Snippets Groups Projects
Commit d28cada0 authored by Hahn Axel (hahn)'s avatar Hahn Axel (hahn)
Browse files

show stats

parent 541da5bf
Branches
No related tags found
1 merge request!3show stats
...@@ -19,7 +19,7 @@ bOptDebug=0 ...@@ -19,7 +19,7 @@ bOptDebug=0
typeset -i iCountDirs=0 typeset -i iCountDirs=0
typeset -i iCountMatch=0 typeset -i iCountMatch=0
typeset -i iCountPrune=0 typeset -i iCountPrune=0
typeset -i iCountPruneError=0
typeset -i rcAll=0 typeset -i rcAll=0
...@@ -104,7 +104,9 @@ function _prune(){ ...@@ -104,7 +104,9 @@ function _prune(){
echo END $( date ) exitcode $rc | tee -a "${logfile}.running" echo END $( date ) exitcode $rc | tee -a "${logfile}.running"
if [ "$rc" -eq "0" ]; then if [ "$rc" -eq "0" ]; then
mv "${logfile}.running" "${logfile}" mv "${logfile}.running" "${logfile}"
iCountPrune+=1
else else
iCountPruneError+=1
mv "${logfile}.running" "${logfile}.error" mv "${logfile}.running" "${logfile}.error"
fi fi
fi fi
...@@ -195,6 +197,13 @@ do ...@@ -195,6 +197,13 @@ do
_prune "${mydir}" _prune "${mydir}"
done done
echo
echo "Status:"
echo "Directories: $iCountDirs"
echo "Matching : $iCountMatch"
echo "Pruned : $iCountPrune"
echo "Prune erors: $iCountPruneError"
echo
echo "done - exitcode $rcAll" echo "done - exitcode $rcAll"
exit $rcAll exit $rcAll
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment