From c75c6d27c35f4786f3d9c3bf4e1043a8f037c823 Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Sat, 3 Jun 2006 17:16:09 +0200 Subject: [PATCH] Fix for whitespaces in output for wc from FreeBSE --- ccollect.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ccollect.sh b/ccollect.sh index 9fa0914..8178b17 100755 --- a/ccollect.sh +++ b/ccollect.sh @@ -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)."