Skip to content

Commit 1f04ff2

Browse files
Bash script improvements
Co-authored-by: Pavel Zwerschke <[email protected]>
1 parent 81b8f90 commit 1f04ff2

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

nb-convert.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/bash
22

3-
set -e
3+
set -euo pipefail
44

55
jupyter nbconvert --TagRemovePreprocessor.enabled=True --TagRemovePreprocessor.remove_cell_tags no-convert --to script docs/examples/*.ipynb &&
66
shopt -s nullglob && # Prevents the loop from running if there are no .txt files

nb-output-check.sh

-1
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,3 @@ for notebook in docs/examples/*.ipynb; do
99
done
1010

1111
echo "All notebooks have valid execution counts."
12-
exit 0

0 commit comments

Comments
 (0)