Skip to content

Commit b35cde1

Browse files
authored
Merge pull request #292 from nmfs-opensci/eeholmes-euo-fail
Add set -euo pipefail for error handling
2 parents 4045f7c + 06bfdc3 commit b35cde1

9 files changed

Lines changed: 9 additions & 3 deletions

scripts/install-apt-packages.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#!/bin/bash
22
# Required User: root
3+
set -euo pipefail
34

45
echo "Running install-apt-packages.sh"
56

scripts/install-conda-packages.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#!/bin/bash
22
# Required User: NB_USER
3+
set -euo pipefail
34

45
# Set INSTALLATION_HAPPENED to false by default
56
INSTALLATION_HAPPENED=false

scripts/install-desktop.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#!/bin/bash
22
# Required User: root
33
# Usage: RUN /pyrocket_scripts/install-desktop.sh <directory path>"
4+
set -euo pipefail
45

56
echo "Running install-desktop.sh"
67

scripts/install-geospatial-r.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/bin/bash
2-
set -e
2+
set -euo pipefail
33

44
# Ensure script is being run as root
55
if [ "$(id -u)" -ne 0 ]; then

scripts/install-pip-packages.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#!/bin/bash
22
# Required User: NB_USER
3+
set -euo pipefail
34

45
# Check if a filename argument is provided
56
if [ -z "$1" ]; then

scripts/install-r-packages.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#!/bin/bash
22
# Required User: NB_USER
3+
set -euo pipefail
34

45
# Check if a filename argument is provided
56
if [ -z "$1" ]; then

scripts/install-rocker.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/bin/bash
2-
set -e
2+
set -euo pipefail
33

44
echo "Running install-rocker.sh"
55

scripts/install-vscode-extensions.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#!/bin/bash
22
set -euo pipefail
3+
34
IFS=$'\n\t'
45
# Required User: root
56

scripts/setup-texlive.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/bin/bash
2-
set -e
2+
set -euo pipefail
33

44
echo "Running setup-texlive.sh"
55

0 commit comments

Comments
 (0)