buf(): fix for directories

This commit is contained in:
Sebastian Tramp 2011-04-11 22:51:59 +02:00
parent ee7249cddb
commit 898b5daa53

View file

@ -63,7 +63,7 @@ buf () {
datepart=$(date +%Y-%m-%d);
firstpart=`echo $oldname | cut -d "." -f 1`;
newname=`echo $oldname | sed s/$firstpart/$firstpart.$datepart/`;
cp ${oldname} ${newname};
cp -R ${oldname} ${newname};
fi
}