Skip to content
Snippets Groups Projects

show stats

Merged Hahn Axel (hahn) requested to merge add_prune_script into master
1 file
+ 10
1
Compare changes
  • Side-by-side
  • Inline
+ 10
1
@@ -19,7 +19,7 @@ bOptDebug=0
typeset -i iCountDirs=0
typeset -i iCountMatch=0
typeset -i iCountPrune=0
typeset -i iCountPruneError=0
typeset -i rcAll=0
@@ -104,7 +104,9 @@ function _prune(){
echo END $( date ) exitcode $rc | tee -a "${logfile}.running"
if [ "$rc" -eq "0" ]; then
mv "${logfile}.running" "${logfile}"
iCountPrune+=1
else
iCountPruneError+=1
mv "${logfile}.running" "${logfile}.error"
fi
fi
@@ -195,6 +197,13 @@ do
_prune "${mydir}"
done
echo
echo "Status:"
echo "Directories: $iCountDirs"
echo "Matching : $iCountMatch"
echo "Pruned : $iCountPrune"
echo "Prune erors: $iCountPruneError"
echo
echo "done - exitcode $rcAll"
exit $rcAll
Loading