aboutsummaryrefslogtreecommitdiff
path: root/c2x
diff options
context:
space:
mode:
authorInqiyad Sabr <sabr@ariamath.xyz>2025-11-03 13:27:53 +0600
committerInqiyad Sabr <sabr@ariamath.xyz>2025-11-03 13:27:53 +0600
commitb98bd42588017d1d8f81c66a292892d48a07a976 (patch)
treefb922e0116c32d13a51cab6cd5d7249536fb25f9 /c2x
parent5002e31f9292886e5750d894d6d3f4a1391bdc45 (diff)
Changed cp to rsync
Diffstat (limited to 'c2x')
-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"