kopia lustrzana https://github.com/jupyterhub/repo2docker
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 referencedpull/147/head
rodzic
97658e0446
commit
603efee588
|
@ -1,3 +1,3 @@
|
|||
#!/bin/sh
|
||||
set -e
|
||||
set -euo pipefail
|
||||
/usr/local/bin/sayhi.sh
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
#!/bin/sh
|
||||
set -e
|
||||
set -euo pipefail
|
||||
/usr/local/bin/sayhi.sh
|
||||
|
|
|
@ -1,2 +1,3 @@
|
|||
#!/bin/bash
|
||||
set -euo pipefail
|
||||
which gfortran
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
#!/bin/bash
|
||||
set -euo pipefail
|
||||
which gfortran
|
||||
test -z $(pip list | grep scipy)
|
||||
jupyter nbextension list
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
#!/bin/bash
|
||||
set -e
|
||||
set -euo pipefail
|
||||
jupyter nbextension list | grep 'jupyter-leaflet' | grep enabled
|
||||
|
|
Ładowanie…
Reference in New Issue