forked from ungleich-public/ccollect
Fix for whitespaces in output for wc from FreeBSE
This commit is contained in:
parent
2c545d8495
commit
c75c6d27c3
1 changed files with 1 additions and 1 deletions
|
@ -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)."
|
||||
|
||||
|
|
Loading…
Reference in a new issue