From d832dace648047cdeee32f295b7f1c799d0b5b50 Mon Sep 17 00:00:00 2001 From: Case Duckworth Date: Thu, 2 Apr 2015 21:27:55 -0700 Subject: Add Islands for backlinkless files --- trunk/common-titles.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'trunk/common-titles.sh') diff --git a/trunk/common-titles.sh b/trunk/common-titles.sh index 9bc0de8..df6158d 100644 --- a/trunk/common-titles.sh +++ b/trunk/common-titles.sh @@ -5,17 +5,18 @@ header="$2"; shift 2; glob="$@"; -echo -n "Compiling ${outFile}..."; +echo -n "Compiling ${outFile}"; cat "$header" > $outFile; for file in $glob; do # Copy title to $outFile & link title="$(grep '^title:' "$file" | cut -d' ' -f2- | sed 's/"//g')"; if (( $RANDOM % 13 == 0 )); then - echo -n "| "; + echo -n "| " >> "$outFile"; else - echo -n " "; + echo -n " " >> "$outFile"; fi echo "[$title](${file%.*}.html)" >> "$outFile"; + echo -n "."; done echo "Done."; -- cgit 1.4.1-21-gabe81