Unverified Commit 3755099b authored by Adam Gyarmati's avatar Adam Gyarmati Committed by GitHub

Fix Windows installation script error

Fix an error during Windows installation caused by trying to create the already existing Build directory. Also excluding intermediate steps for Install directory creation.
parent af233753
...@@ -48,10 +48,8 @@ CMAKE_CONFIG_GENERATOR="Visual Studio 14 2015 Win64" ...@@ -48,10 +48,8 @@ CMAKE_CONFIG_GENERATOR="Visual Studio 14 2015 Win64"
if [ ! -d "$myRepo/opencv" ]; then if [ ! -d "$myRepo/opencv" ]; then
echo "cloning opencv" echo "cloning opencv"
git clone https://github.com/opencv/opencv.git git clone https://github.com/opencv/opencv.git
mkdir Build mkdir -p Build/opencv
mkdir Build/opencv mkdir -p Install/opencv
mkdir Install
mkdir Install/opencv
else else
cd opencv cd opencv
git pull --rebase git pull --rebase
...@@ -60,8 +58,7 @@ fi ...@@ -60,8 +58,7 @@ fi
if [ ! -d "$myRepo/opencv_contrib" ]; then if [ ! -d "$myRepo/opencv_contrib" ]; then
echo "cloning opencv_contrib" echo "cloning opencv_contrib"
git clone https://github.com/opencv/opencv_contrib.git git clone https://github.com/opencv/opencv_contrib.git
mkdir Build mkdir -p Build/opencv_contrib
mkdir Build/opencv_contrib
else else
cd opencv_contrib cd opencv_contrib
git pull --rebase git pull --rebase
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment