Skip to content

Commit 85b0890

Browse files
author
michael-n-cooper
committed
make some of the script live
1 parent 3410351 commit 85b0890

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

techniques/create-techniques.sh

+7-7
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
#!/bin/bash
2-
echo cp technique-template.html ../../technique-template.html
3-
echo cd ..
2+
cp technique-template.html ../../technique-template.html
3+
cd ..
44
while [ $# -gt 0 ]
55
do
6-
echo git checkout --orphan tech-$2
7-
echo git rm -rf .
8-
echo cp ../technique-template.html techniques/$1/$2.html
9-
echo sed -i "s/Technique Title/$3/g" techniques/$1/$2.html
6+
git checkout --orphan tech-$2
7+
git rm -rf .
8+
cp ../technique-template.html techniques/$1/$2.html
9+
sed -i "s/Technique Title/$3/g" techniques/$1/$2.html
1010
echo git add .
1111
echo git commit -m "Set up $2 technique"
1212
echo git push --set-upstream origin tech-$2
1313
shift
1414
shift
1515
shift
1616
done
17-
echo rm ../technique-template.html
17+
rm ../technique-template.html
1818
echo git checkout technique-setup

0 commit comments

Comments
 (0)