Skip to content

Commit 1cbd70a

Browse files
author
michael-n-cooper
committed
more
1 parent c964ef7 commit 1cbd70a

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

create-techniques.sh

+4-3
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,12 @@ while [ $# -gt 0 ]
88
do
99
git checkout --orphan tech-$2
1010
git rm -rf .
11+
mkdir techniques
1112
mkdir techniques/$1
1213
cp ../technique-template.html techniques/$1/$2.html
13-
sed -i "s/<p id=\"technology\"></p>/<p id=\"technology\">$1<\/p>/" techniques/$1/$2.html
14-
sed -i "s/<p id=\"type\"></p>/<p id=\"type\">$3<\/p>/" techniques/$1/$2.html
15-
sed -i "s/Technique Title/$4/g" techniques/$1/$2.html
14+
sed -i "s|<p id=\"technology\"></p>|<p id=\"technology\">$1</p>|" techniques/$1/$2.html
15+
sed -i "s|<p id=\"type\"></p>|<p id=\"type\">$3</p>|" techniques/$1/$2.html
16+
sed -i "s|Technique Title|$4|g" techniques/$1/$2.html
1617
git add techniques/$1/$2.html
1718
git commit -m "Set up $2 technique"
1819
# git push --set-upstream origin tech-$2

0 commit comments

Comments
 (0)