Fix for whitespaces in output for wc from FreeBSE

This commit is contained in:
Nico Schottelius 2006-06-03 17:16:09 +02:00
parent 2c545d8495
commit c75c6d27c3

View file

@ -328,7 +328,7 @@ while [ "$i" -lt "$no_sources" ]; do
#
# the created directories are named $INTERVAL.$DA
count=$(ls -d "$c_dest/${INTERVAL}."?* 2>/dev/null | wc -l)
count=$(ls -d "$c_dest/${INTERVAL}."?* 2>/dev/null | wc -l | sed 's/^ *//g')
echo -n "Currently $count backup(s) exist(s),"
echo " total keeping $c_interval backup(s)."