From 898b5daa531db46f701fe4519f54413d7b35321b Mon Sep 17 00:00:00 2001 From: Sebastian Tramp Date: Mon, 11 Apr 2011 22:51:59 +0200 Subject: [PATCH] buf(): fix for directories --- functions.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions.zsh b/functions.zsh index 3a28f83..38cef21 100644 --- a/functions.zsh +++ b/functions.zsh @@ -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 }