Summary Files Commits Branches @commit @diff @stats
diff options
context:
space:
mode:
Commit89d2ba57b9aa09f50740a3760ddcf2a1946496f4 (patch)
Author
 Syndamia <kamen@syndamia.com>
2023-10-23 15:06:55 +0300
Committer
 Syndamia <kamen@syndamia.com>
2023-10-23 15:06:55 +0300
Filesf10b1c1f0485487f6bfaf5ae336f85d507665051
csg-89d2ba57b9aa09f50740a3760ddcf2a1946496f4.tar
csg-89d2ba57b9aa09f50740a3760ddcf2a1946496f4.tar.gz
csg-89d2ba57b9aa09f50740a3760ddcf2a1946496f4.zip
Parent6fc184606bd3324ae3dfd1f1f28fb2dc247acda3 (diff)
[s2] POSIX Renamed transform-file to transform_file and replaced process substitution with heredoc
1 files changed, 5 insertions, 3 deletions
-rwxr-xr-xcsg8
diff --git a/csg b/csg
index 035d91f..5806738 100755
--- a/csg
+++ b/csg
@@ -213,7 +213,7 @@ endTimer "[Stage 1] Done"
### Transforming Markdown
startTimer "[Stage 2] Transforming Markdown to HTML"
-transform-file() {
+transform_file() {
local file="$1"
local outf="${file%md}html"
local scripts="$2"
@@ -299,8 +299,10 @@ do
[ "${scr_recip[$i]}" != "${scr_recip[$i]/${file%md}html/}" ] && scripts+=" -f ${scr_path[$i]} "
done
- transform-file "$file" "$scripts" &
-done < <(find "$DESTINATION" -type f -name "*.md")
+ transform_file "$file" "$scripts" &
+done << EOF
+$(find "$DESTINATION" -type f -name "*.md")
+EOF
wait
overwriteLine "[Stage 2] Generating sitemap"