Unverified Commit b7418dc8 authored by James Lamb's avatar James Lamb Committed by GitHub
Browse files

[ci] fix sh-compatibility issue in build-cran-package.sh (#6118)

parent 60a4a13e
...@@ -132,7 +132,7 @@ cd "${TEMP_R_DIR}" ...@@ -132,7 +132,7 @@ cd "${TEMP_R_DIR}"
using_windows_and_r3=$( using_windows_and_r3=$(
Rscript -e 'cat(.Platform$OS.type == "windows" && R.version[["major"]] < 4)' 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" LGB_CXX_STD="C++11"
fi fi
sed -i.bak -e "s/~~CXXSTD~~/${LGB_CXX_STD}/" DESCRIPTION sed -i.bak -e "s/~~CXXSTD~~/${LGB_CXX_STD}/" DESCRIPTION
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment