Skip to content

Commit 3410351

Browse files
author
michael-n-cooper
committed
filling out the script
1 parent 6c263fd commit 3410351

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

techniques/create-techniques.sh

+10-3
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,16 @@ echo cp technique-template.html ../../technique-template.html
33
echo cd ..
44
while [ $# -gt 0 ]
55
do
6-
echo git checkout --orphan $2
6+
echo git checkout --orphan tech-$2
77
echo git rm -rf .
8-
echo cp ../technique-template.html $1/$2.html
8+
echo cp ../technique-template.html techniques/$1/$2.html
9+
echo sed -i "s/Technique Title/$3/g" techniques/$1/$2.html
10+
echo git add .
11+
echo git commit -m "Set up $2 technique"
12+
echo git push --set-upstream origin tech-$2
913
shift
1014
shift
11-
done
15+
shift
16+
done
17+
echo rm ../technique-template.html
18+
echo git checkout technique-setup

0 commit comments

Comments
 (0)