зеркало из https://github.com/microsoft/docker.git
21 строка
400 B
Bash
Executable File
21 строка
400 B
Bash
Executable File
#!/bin/bash -e
|
|
|
|
|
|
# Sed to process GitHub Markdown
|
|
# 1-2 Remove comment code from metadata block
|
|
#
|
|
for i in ls -l /docs/content/*
|
|
do # Line breaks are important
|
|
if [ -d $i ] # Spaces are important
|
|
then
|
|
y=${i##*/}
|
|
find $i -type f -name "*.md" -exec sed -i.old \
|
|
-e '/^<!.*metadata]>/g' \
|
|
-e '/^<!.*end-metadata.*>/g' {} \;
|
|
fi
|
|
done
|
|
|
|
|
|
|
|
|