From c0531113cb8ac3aa2e293c2021585e5052b5dea3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tiago=20Concei=C3=A7=C3=A3o?= Date: Mon, 10 Oct 2022 23:47:53 +0100 Subject: [PATCH] Update install-dependencies.sh --- Scripts/install-dependencies.sh | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/Scripts/install-dependencies.sh b/Scripts/install-dependencies.sh index 5653f07..174ad9e 100644 --- a/Scripts/install-dependencies.sh +++ b/Scripts/install-dependencies.sh @@ -13,6 +13,9 @@ if [[ $EUID -ne 0 ]]; then exit 1 fi +arch_name="$(uname -m)" +osVariant="" + if [[ "$arch_name" != "x86_64" && "$arch_name" != "arm64" ]]; then echo "Error: Unsupported host arch: $arch_name" exit -1 @@ -46,4 +49,10 @@ then yum install -y libjpeg-devel libjpeg-turbo-devel libpng-devel libgeotiff-devel libdc1394-devel ffmpeg-devel tbb-devel mesa-libGL wget fi -echo "Completed - You can now run UVtools" +if [ "$osVariant" == "" ]; then + echo "Error: Base operative system / package manager not identified, nothing was installed" +else + echo "Completed: You can now run UVtools" +fi + +