Skip to content

Commit

Permalink
set -e so script exits with proper exit code (#243)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark Anderson-Trocme authored Jan 7, 2022
1 parent e8d8c5f commit 50d885e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions orb/scripts/detect.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#!/bin/bash
set -e

if [[ -z "${PLUTO_FILE}" ]]; then
echo "Error: requires a file argument"
exit 1
Expand Down
2 changes: 2 additions & 0 deletions orb/scripts/detect_files.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#!/bin/bash
set -e

if [[ -n "${PLUTO_DIRECTORY}" ]]; then
PLUTO_ARGS="$PLUTO_ARGS --directory ${PLUTO_DIRECTORY}"
fi
Expand Down

0 comments on commit 50d885e

Please sign in to comment.