STYLE: trim trailing slash from tested directories

This commit is contained in:
Mark Olesen
2019-04-25 10:40:45 +02:00
parent a7c2a4bfb9
commit 5ac0e3624f
9 changed files with 10 additions and 10 deletions

View File

@ -26,7 +26,7 @@
if [ "$1" = "-test" ]
then
[ "$#" -eq 2 ] || { echo "${0##*/} -test : needs 1 argument"; exit 1; }
dir="$2" # <- MPI_ARCH_PATH
dir="${2%/}" # <- MPI_ARCH_PATH
if [ -r "$dir/lib$WM_COMPILER_LIB_ARCH/libmpi$EXT_SO" ]
then
echo " Have openmpi shared library (${dir##*/})"