aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xc2x3
1 files changed, 1 insertions, 2 deletions
diff --git a/c2x b/c2x
index 8ee737c..7d6a1b0 100755
--- a/c2x
+++ b/c2x
@@ -1,6 +1,5 @@
#!/bin/sh
-[ -s ./"$1_xhtml" ] && rm -rf "./${1}_xhtml"
-cp -r ./"${1}" ./"${1}_xhtml"
+rsync -avz ./"${1}" ./"${1}_xhtml"
cd ./"${1}_xhtml" || exit
for file in $(find ./* | grep ".gmi" | sed 's/.gmi//'); do
g2x < "./${file}.gmi" > "./${file}.html"