From f3c829e3d51c459eb9108e7ffc62c4d8204dd91d Mon Sep 17 00:00:00 2001 From: spinach Date: Mon, 27 Feb 2023 14:27:12 -0500 Subject: [PATCH] broken --- stitch | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/stitch b/stitch index a7d8e99..fa5f90f 100755 --- a/stitch +++ b/stitch @@ -1,5 +1,8 @@ #!/usr/bin/env bash +working_dir=$(pwd) +header="$working_dir/header.md" + formatting() { cat < /tmp/mdformatting.md +echo "$header" +# creates a temporary file for formatting +formatting "test" > $header + +if [ -z "$outputname" ] ; then + outputname=test +fi +if [ -f "$outputname" ] ; then + rm "$outputname" +fi +pandoc "$working_dir/header.md" "$directory/*.md" -o "$outputname.pdf" + +rm "$working_dir/header.md"