Initial commit
This commit is contained in:
20
vendor/github.com/hyperhq/hypercli/docs/touch-up.sh
generated
vendored
Executable file
20
vendor/github.com/hyperhq/hypercli/docs/touch-up.sh
generated
vendored
Executable file
@@ -0,0 +1,20 @@
|
||||
#!/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
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user