Skip to content

Commit 3a2b056

Browse files
flaviohelenonikic
authored andcommitted
Ensure proper exit codes for each shell script
1 parent 1cff6a0 commit 3a2b056

File tree

3 files changed

+21
-0
lines changed

3 files changed

+21
-0
lines changed

build_html.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,9 @@
1+
#!/usr/bin/env bash
2+
3+
# https://sipb.mit.edu/doc/safe-shell/
4+
set -eufo pipefail
5+
6+
shopt -s failglob
7+
18
sphinx-build -b html -d doctrees Book BookHTML
29
php generate_php5_redirects.php

build_release_html.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
#!/usr/bin/env bash
2+
3+
# https://sipb.mit.edu/doc/safe-shell/
4+
set -eufo pipefail
5+
6+
shopt -s failglob
7+
18
# get rid of old files, so we don't keep them around in the git repo
29
# when a file or directory was renamed
310
rm -rf BookHTML/*/

build_release_latex.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
#!/usr/bin/env bash
2+
3+
# https://sipb.mit.edu/doc/safe-shell/
4+
set -eufo pipefail
5+
6+
shopt -s failglob
7+
18
rm -rf BookLatex
29
# inkscape Book/hashtables/images/basic_hashtable.svg -D -A Book/hashtables/images/basic_hashtable.pdf
310
# inkscape Book/hashtables/images/doubly_linked_hashtable.svg -D -A Book/hashtables/images/doubly_linked_hashtable.pdf

0 commit comments

Comments
 (0)