From 18e1d82be7a37751b7a008fd5910c338a6e965fc Mon Sep 17 00:00:00 2001 From: "taha@luxor" Date: Wed, 30 Sep 2020 12:42:52 +0200 Subject: [PATCH] Allow assets.external to copy directories, not just files. --- chertex.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chertex.sh b/chertex.sh index 99ef117..0289561 100755 --- a/chertex.sh +++ b/chertex.sh @@ -163,7 +163,7 @@ if [ $# -eq 1 ]; then fi echo " Copying $asset to $assetpathtarget" # cp but don't overwrite existing files - cp --preserve=timestamps --no-clobber $asset $assetpathtarget + cp --preserve=timestamps --no-clobber --recursive $asset $assetpathtarget # except we want to overwrite the BibTeX library files (inside the assets/references/ directory), we'll do that by checking the target dirname and only running the destructive cp operation if its "references" assetdirnametarget=$(basename "$assetpathtarget") if [[ $assetdirnametarget == "references" ]]; then