Make all bash verify scripts fail on error

Bash scripts by default continue on executing even if any
command errors. That's not the behavior we want for our scripts,
so let's explicitly get them to fail if:

1. Any command exits with non 0 exit code
2. An undefined variable is referenced
pull/147/head
yuvipanda 2017-11-21 14:53:15 -08:00
rodzic 97658e0446
commit 603efee588
5 zmienionych plików z 5 dodań i 3 usunięć

Wyświetl plik

@ -1,3 +1,3 @@
#!/bin/sh
set -e
set -euo pipefail
/usr/local/bin/sayhi.sh

Wyświetl plik

@ -1,3 +1,3 @@
#!/bin/sh
set -e
set -euo pipefail
/usr/local/bin/sayhi.sh

Wyświetl plik

@ -1,2 +1,3 @@
#!/bin/bash
set -euo pipefail
which gfortran

Wyświetl plik

@ -1,4 +1,5 @@
#!/bin/bash
set -euo pipefail
which gfortran
test -z $(pip list | grep scipy)
jupyter nbextension list

Wyświetl plik

@ -1,3 +1,3 @@
#!/bin/bash
set -e
set -euo pipefail
jupyter nbextension list | grep 'jupyter-leaflet' | grep enabled