Skip to content

Commit

Permalink
Merge pull request nutechsoftware#91 from wizkidorg/patch-1
Browse files Browse the repository at this point in the history
fix for wrong pattern match.
  • Loading branch information
endlesscoil authored May 9, 2021
2 parents e179246 + c5a366e commit ee17a93
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contrib/opencv/opencv.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ type wget > /dev/null 2>&1 || { echo >&2 "wget command not found. Aborting."; ex
type unzip > /dev/null 2>&1 || { echo >&2 "unzip command not found. Aborting."; exit 1; }
type make > /dev/null 2>&1 || { echo >&2 "make command not found. Aborting."; exit 1; }

version="$(wget -q -O - http://sourceforge.net/projects/opencvlibrary/files/opencv-unix | egrep -m1 -o '\"[0-9](\.[0-9]+\-*[a-z0-9]*)+' | cut -c2-)"
version="$(wget -q -O - http://sourceforge.net/projects/opencvlibrary/files/opencv-unix | egrep -m1 -o 'opencv-unix/[0-9](\.[0-9]+\-*[a-z0-9]*)+' | cut -c13-)"
echo "Installing OpenCV" $version
echo "Installing Dependencies"
sudo apt-get update
Expand Down

0 comments on commit ee17a93

Please sign in to comment.