Skip to content

Commit

Permalink
make es_mpiexec posix-sh compliant
Browse files Browse the repository at this point in the history
  • Loading branch information
junghans committed Sep 15, 2014
1 parent 0712ba9 commit 14795ff
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion .travis.yml
Expand Up @@ -21,7 +21,6 @@ matrix:

before_script:
- if [[ $MPI = with ]]; then export CXX=mpic++; fi #there is MPICXX, but CXX overwrites it, so let's see CXX
- sudo update-alternatives --install /bin/sh sh /bin/bash 100 # es_mpiexec does not work in dash, so let's use bash

script: #Travis' cython is too old to compile the python-interface
- ./bootstrap.sh &&
Expand Down
4 changes: 2 additions & 2 deletions tools/es_mpiexec.in
Expand Up @@ -76,7 +76,7 @@ if test "x$MYMPIEXEC" = "x"; then
reason=170
elif test -x "$MYMPIEXEC"; then
mpiexec=$MYMPIEXEC
elif command -v "$MPIEXEC" >&/dev/null 2>&1; then
elif command -v "$MPIEXEC" >/dev/null 2>&1; then
# POSIX compatible check if a program exists, without knowing its path
mpiexec=$MPIEXEC
else
Expand All @@ -85,7 +85,7 @@ else
fi

# and execute, if possible
if command -v "$mpiexec" >&/dev/null 2>&1; then
if command -v "$mpiexec" >/dev/null 2>&1; then

exec $mpiexec "$@"

Expand Down

0 comments on commit 14795ff

Please sign in to comment.