Skip to content

Commit

Permalink
ENH: build_pdf.sh - avoid cd .. by placing operation within subdir wi…
Browse files Browse the repository at this point in the history
…thin ()

It makes IMHO easier to parse the code and to avoid "oops I ended up not where I wanted"
  • Loading branch information
yarikoptic authored and sappelhoff committed Oct 10, 2020
1 parent 4d02a0d commit a185347
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pdf_build_src/build_pdf.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,11 @@ python3 process_markdowns.py
cp pandoc_script.py header.tex cover.tex header_setup.tex src_copy/src

# run pandoc_script from src_copy directory
(
cd src_copy/src
python3 pandoc_script.py
mv bids-spec.pdf ../..
cd ../..
)

# delete the duplicated src directory
rm -rf src_copy

0 comments on commit a185347

Please sign in to comment.