Skip to content

Commit

Permalink
don't use expr to check for 10.13
Browse files Browse the repository at this point in the history
  • Loading branch information
assignUser committed Oct 17, 2023
1 parent d3a576d commit a56ce03
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion r/configure
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ set_pkg_vars () {
PKG_CFLAGS="$PKG_CFLAGS $ARROW_R_CXXFLAGS"
fi

if [ "$UNAME" = "Darwin" ] && expr $(sw_vers -productVersion) : '10\.13'; then
if [ "$UNAME" = "Darwin" ] && [ $(sw_vers -productVersion) = "10.13" ]; then
# avoid C++17 availability warnings on macOS < 11
PKG_CFLAGS="$PKG_CFLAGS -D_LIBCPP_DISABLE_AVAILABILITY"
fi
Expand Down

0 comments on commit a56ce03

Please sign in to comment.