From ed7f4f881ceb7dc40c19b45788836cfca7a459df Mon Sep 17 00:00:00 2001 From: Ramana Radhakrishnan Date: Mon, 11 May 2020 23:11:20 +0100 Subject: [PATCH] Allow ubuntu_install_darknet.sh to work in both 18.04 and 16.04 --- docker/install/ubuntu_install_darknet.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/docker/install/ubuntu_install_darknet.sh b/docker/install/ubuntu_install_darknet.sh index 0238b920c8448..c48724c6065b9 100755 --- a/docker/install/ubuntu_install_darknet.sh +++ b/docker/install/ubuntu_install_darknet.sh @@ -22,5 +22,8 @@ set -o pipefail #install the necessary dependancies, cffi, opencv wget -q 'https://github.com/siju-samuel/darknet/blob/master/lib/libdarknet.so?raw=true' -O libdarknet.so -pip2 install opencv-python cffi +debian_version=`cat /etc/debian_version` +if [ "$debian_version" == "stretch/sid" ]; then + pip2 install opencv-python cffi +fi pip3 install opencv-python cffi