#!/bin/bash

mkdir -p ../build || exit

cd ../build
cmake ..

make
sudo make install

#!/bin/bash

mkdir -p ../build || exit
cd ../build

cmake ..

make && sudo make install

Add fallback on make install
Add fallback on make install