Automatically accept install

This commit is contained in:
Maitreya Patni 2023-10-10 14:07:53 +05:30 committed by GitHub
parent 089e288f27
commit 66c092272b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -39,10 +39,10 @@ if [ -z "$1" ]
then then
echo "Installing OpenCV from source" echo "Installing OpenCV from source"
if [[ -x "$(command -v apt)" ]]; then if [[ -x "$(command -v apt)" ]]; then
apt update && apt install build-essential git apt update && apt install -y build-essential git
apt install cmake ffmpeg libavformat-dev libdc1394-dev libgtk2.0-dev \ apt install -y cmake ffmpeg libavformat-dev libdc1394-dev libgtk2.0-dev \
libjpeg-dev libpng-dev libswscale-dev libtbb2 libtbb-dev \ libjpeg-dev libpng-dev libswscale-dev libtbb2 libtbb-dev \
libtiff-dev libtiff-dev
elif [[ -x "$(command -v dnf)" ]]; then elif [[ -x "$(command -v dnf)" ]]; then
dnf update && dnf install cmake gcc gcc-c git dnf update && dnf install cmake gcc gcc-c git
dnf install ffmpeg-devel libdc1394-devel gtk2-devel \ dnf install ffmpeg-devel libdc1394-devel gtk2-devel \