lol

Merge pull request #141121 from Luflosi/md-to-db.sh-handle-path-with-spaces

nixos/doc/md-to-db.sh: handle path to nixpkgs with spaces

authored by

figsoda and committed by
GitHub
1512ec86 88045f01

+3 -3
+3 -3
nixos/doc/manual/md-to-db.sh
··· 6 6 # into DocBook files in the from_md folder. 7 7 8 8 DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" 9 - pushd $DIR 9 + pushd "$DIR" 10 10 11 11 # NOTE: Keep in sync with Nixpkgs manual (/doc/Makefile). 12 12 # TODO: Remove raw-attribute when we can get rid of DocBook altogether. ··· 29 29 30 30 for mf in ${MD_FILES[*]}; do 31 31 if [ "${mf: -11}" == ".section.md" ]; then 32 - mkdir -p $(dirname "$OUT/$mf") 32 + mkdir -p "$(dirname "$OUT/$mf")" 33 33 OUTFILE="$OUT/${mf%".section.md"}.section.xml" 34 34 pandoc "$mf" "${pandoc_flags[@]}" \ 35 35 -o "$OUTFILE" ··· 37 37 fi 38 38 39 39 if [ "${mf: -11}" == ".chapter.md" ]; then 40 - mkdir -p $(dirname "$OUT/$mf") 40 + mkdir -p "$(dirname "$OUT/$mf")" 41 41 OUTFILE="$OUT/${mf%".chapter.md"}.chapter.xml" 42 42 pandoc "$mf" "${pandoc_flags[@]}" \ 43 43 --top-level-division=chapter \