Summary Files Commits Branches @commit @diff @stats
diff options
context:
space:
mode:
1 files changed, 4 insertions, 2 deletions
-rwxr-xr-xcsg6
diff --git a/csg b/csg
index 80ee53b..53a6f70 100755
--- a/csg
+++ b/csg
@@ -157,10 +157,12 @@ startTimer "[Stage 1] Moving files to destination"
find . -type f -not -name "\.*" -not -name '_header.html' -not -name '_footer.html' | \
cpio -pdu "$DESTINATION" >/dev/null 2>&1)
-find "$DESTINATION" -type f -name "*index.md" -links +1 | while read -r file
+while read -r file
do
mv "$file" "${file%md}html"
-done
+done << EOF
+$(find "$DESTINATION" -type f -name "*index.md" -links +1)
+EOF
if [ -n "$AWKSCRIPTS" ]
then