Skip to content

Commit 1bd697f

Browse files
committed
try with condiiton
1 parent 9538c1b commit 1bd697f

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.install/install_cmake.sh

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,11 @@ MODE=$1 # whether to install using sudo or not
66

77
if [[ $OS_TYPE = 'Darwin' ]]
88
then
9-
brew uninstall cmake
10-
brew install cmake
9+
if ! command -v cmake &> /dev/null; then
10+
brew install cmake
11+
else
12+
echo "cmake already installed"
13+
fi
1114
else
1215
if [[ $processor = 'x86_64' ]]
1316
then

0 commit comments

Comments
 (0)