Skip to content

Commit 8f13c3b

Browse files
committed
opal_get_version.m4: properly quote dir args
Make sure to surround directory variables with quotes so that they function properly, even if there's spaces in the directory name. While Open MPI doesn't generally support directory names with spaces, this fix at least allows `autogen.pl` to complete successfully. Signed-off-by: Jeff Squyres <[email protected]>
1 parent c6ee023 commit 8f13c3b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

config/opal_get_version.m4

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,9 +83,9 @@ m4_define([OPAL_GET_VERSION],[
8383
if test -d "$srcdir/.git" && test $git_happy -eq 1; then
8484
if test "$srcdir" != "`pwd`"; then
8585
git_save_dir=`pwd`
86-
cd $srcdir
86+
cd "$srcdir"
8787
$2_REPO_REV=`git describe --tags --always`
88-
cd $git_save_dir
88+
cd "$git_save_dir"
8989
unset git_save_dir
9090
else
9191
$2_REPO_REV=`git describe --tags --always`

0 commit comments

Comments
 (0)