forked from ungleich-public/ccollect
Corrected singular case
This commit is contained in:
parent
e42dac6943
commit
044df01c08
1 changed files with 2 additions and 1 deletions
|
@ -311,7 +311,8 @@ while [ "$i" -lt "$no_shares" ]; do
|
||||||
|
|
||||||
# the created directories are named $INTERVALL.$DA
|
# the created directories are named $INTERVALL.$DA
|
||||||
count=$(ls -d "$c_dest/${INTERVALL}."?* 2>/dev/null | wc -l)
|
count=$(ls -d "$c_dest/${INTERVALL}."?* 2>/dev/null | wc -l)
|
||||||
echo "Currently $count backup(s) exist, total keeping $c_intervall backup(s)."
|
echo -n "Currently $count backup(s) exist(s),"
|
||||||
|
echo " total keeping $c_intervall backup(s)."
|
||||||
|
|
||||||
if [ "$count" -ge "$c_intervall" ]; then
|
if [ "$count" -ge "$c_intervall" ]; then
|
||||||
substract=$(echo $c_intervall - 1 | bc)
|
substract=$(echo $c_intervall - 1 | bc)
|
||||||
|
|
Loading…
Reference in a new issue