From 0ec2a68518c527af77157c47d6f219e796e54f08 Mon Sep 17 00:00:00 2001 From: Justin Pierce Date: Tue, 8 Sep 2020 17:45:26 -0400 Subject: [PATCH] Prevent cmake symlink creation if file is present --- opt_maven_install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/opt_maven_install.sh b/opt_maven_install.sh index a5d906a503f28..f92cc8f08539e 100644 --- a/opt_maven_install.sh +++ b/opt_maven_install.sh @@ -23,7 +23,7 @@ if [[ "$1" == "true" ]]; then export PATH=${PATH}:${M2_HOME}/bin popd - ln -s /usr/bin/cmake3 /usr/bin/cmake + test -e /usr/bin/cmake || ln -s /usr/bin/cmake3 /usr/bin/cmake export CMAKE_C_COMPILER=gcc CMAKE_CXX_COMPILER=g++ # Build hadoop