We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6c0c1d6 commit b3946aeCopy full SHA for b3946ae
notebooks/tps/boids/.teacher/run-all.sh
@@ -1,5 +1,7 @@
1
#!/bin/bash
2
3
+DRY_RUN=""
4
+
5
# find the current folder name without the teacher part
6
7
function find-stem() {
@@ -49,7 +51,7 @@ function run-one() {
49
51
echo ========== "$current "
50
52
extract-docstring $current
53
# python $current "$@" 2>&1 | grep -v 'Warning: Expected'
- python $current
54
+ [[ -z "$DRY_RUN" ]] && python $current
55
}
56
57
function run-all() {
@@ -61,6 +63,14 @@ function run-all() {
61
63
62
64
65
function main() {
66
+ while getopts "n" opt; do
67
+ case $opt in
68
+ n) DRY_RUN="yes";;
69
+ *) echo "Unknown option: $opt";;
70
+ esac
71
+ done
72
+ shift $((OPTIND-1))
73
74
if [[ -z "$@" ]]; then
75
run-all
76
else
notebooks/tps/boids/ARTEFACTS-boids.zip
0 Bytes
0 commit comments