Fix buildyaml.sh script so that docs generation works correctly. (#7662)
* Fix buildyaml.sh script so that docs generation works correctly. * Replace a few NUL's that were missed by the previous commit.
Austin S. Hemmelgarn committed
Jan 7, 2020 at 04:55 UTC
c0ae9b32f47a1af872af1888f53dedfda8a08df7
1 file changed
+1
-1
docs/generator/buildyaml.sh
+1
-1
@@ -37,7 +37,7 @@ navpart() {
37
if [ -z "$maxdepth" ]; then maxdepth=1; fi
38
if [[ -n $excludefirstlevel ]]; then mindepth=2; else mindepth=1; fi
39
40
- for f in $(find $dir -mindepth $mindepth -maxdepth $maxdepth -name "${file}.md" -printf '%h\0%d\0%p\n' | sort -t '\0' -n | awk -F '\0' '{print $3}'); do
40
+ for f in $(find $dir -mindepth $mindepth -maxdepth $maxdepth -name "${file}.md" -printf '%h|%d|%p\n' | sort -t '|' -n | awk -F '|' '{print $3}'); do
41
# If I'm adding a section, I need the child links to be one level deeper than the requested level in "tabs"
42
if [ -z "$section" ]; then
43
echo "$spc- '$f'"