We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3410351 commit 85b0890Copy full SHA for 85b0890
techniques/create-techniques.sh
@@ -1,18 +1,18 @@
1
#!/bin/bash
2
-echo cp technique-template.html ../../technique-template.html
3
-echo cd ..
+cp technique-template.html ../../technique-template.html
+cd ..
4
while [ $# -gt 0 ]
5
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
+ git checkout --orphan tech-$2
+ git rm -rf .
+ cp ../technique-template.html techniques/$1/$2.html
+ 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
13
shift
14
15
16
done
17
-echo rm ../technique-template.html
+rm ../technique-template.html
18
echo git checkout technique-setup
0 commit comments