buf(): fix for directories
This commit is contained in:
parent
ee7249cddb
commit
898b5daa53
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue