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()
37
37
export cmake_binary_installer=" ${download_path} /cmake-${version_to_build} -Linux-x86_64.sh"
38
38
${SUDO:- } mkdir -p " $install_path "
39
39
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
40
44
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
43
47
44
48
else # build from source
45
49
You can’t perform that action at this time.
0 commit comments