Skip to content

Commit

Permalink
[ci] fix sh-compatibility issue in build-cran-package.sh (#6118)
Browse files Browse the repository at this point in the history
  • Loading branch information
jameslamb committed Sep 29, 2023
1 parent 60a4a13 commit b7418dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build-cran-package.sh
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ cd "${TEMP_R_DIR}"
using_windows_and_r3=$(
Rscript -e 'cat(.Platform$OS.type == "windows" && R.version[["major"]] < 4)'
)
if [[ ${using_windows_and_r3} == "TRUE" ]]; then
if test "${using_windows_and_r3}" = "TRUE"; then
LGB_CXX_STD="C++11"
fi
sed -i.bak -e "s/~~CXXSTD~~/${LGB_CXX_STD}/" DESCRIPTION
Expand Down

0 comments on commit b7418dc

Please sign in to comment.