Skip to content

Commit

Permalink
Fix bash command line in build script (#23)
Browse files Browse the repository at this point in the history
On some systems, /bin/sh points to dash, which does not support some
bash constructs, like `${BASH_SOURCE[0]}`.  Change #! line to
/bin/bash instead.

Add -e option to stop upon first command that fails.

Co-authored-by: Joel E. Denny <[email protected]>
  • Loading branch information
jdenny-ornl and Joel E. Denny authored Mar 29, 2024
1 parent 30b0175 commit 0aeeeb1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build_and_run_umt.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh -x
#!/bin/bash -xe
# This script will compile a basic Release build of UMT. Additional CMake options can be added to the command line args of this
# script, and they will be picked up and added to the UMT CMake command at the bottom of this script.
# For a list of supported CMake options, run 'ccmake /path/to/umt/src'.
Expand Down

0 comments on commit 0aeeeb1

Please sign in to comment.