Skip to content

Commit

Permalink
alt fix
Browse files Browse the repository at this point in the history
  • Loading branch information
wxtim committed Mar 31, 2022
1 parent c0cedca commit bc9881c
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions metomi/rose/scripts/rose-mpi-launch
Original file line number Diff line number Diff line change
Expand Up @@ -237,14 +237,9 @@ fi
ROSE_LAUNCHER_BASE=
if [[ -n $ROSE_LAUNCHER ]]; then
# Path
ROSE_LAUNCHER_PATH=""
for command in ${ROSE_LAUNCHER}; do
if command="$(type -P $command)"; then
ROSE_LAUNCHER_PATH="${ROSE_LAUNCHER_PATH} ${command}"
else
err "ROSE_LAUNCHER: $ROSE_LAUNCHER: command not found"
fi
done
if ! ROSE_LAUNCHER_PATH="$(type -P $ROSE_LAUNCHER)"; then
err "ROSE_LAUNCHER: $ROSE_LAUNCHER: command not found"
fi
ROSE_LAUNCHER=$ROSE_LAUNCHER_PATH
ROSE_LAUNCHER_BASE="$(basename "$ROSE_LAUNCHER")"
fi
Expand Down

0 comments on commit bc9881c

Please sign in to comment.