File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
prerequisites/build-functions Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -37,9 +37,13 @@ build_and_install()
3737 export cmake_binary_installer=" ${download_path} /cmake-${version_to_build} -Linux-x86_64.sh"
3838 ${SUDO:- } mkdir -p " $install_path "
3939 chmod u+x " ${cmake_binary_installer} "
40+ if [[ ! -z " ${SUDO:- } " ]]; then
41+ info " You do not have write permissions to the installation path ${install_path} "
42+ info " If you have administrative privileges, enter your password to install ${package_to_build} "
43+ fi
4044 info " Installing Cmake with the following command: "
41- info " \" ${cmake_binary_installer} \" --prefix=\" $install_path \" --exclude-subdir"
42- " ${cmake_binary_installer} " --prefix=" $install_path " --exclude-subdir
45+ info " ${SUDO :- } \" ${cmake_binary_installer} \" --prefix=\" $install_path \" --exclude-subdir"
46+ ${SUDO :- } " ${cmake_binary_installer} " --prefix=" $install_path " --exclude-subdir
4347
4448 else # build from source
4549
You can’t perform that action at this time.
0 commit comments