From 1dc652216a0b20ae75fc246c398f2467bc8a61b4 Mon Sep 17 00:00:00 2001 From: Shreyas Zare Date: Sun, 19 May 2019 01:33:41 +0530 Subject: [PATCH] installing dependencies only when .net core is not found --- DnsServerApp.NETCore/install-raspi.sh | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/DnsServerApp.NETCore/install-raspi.sh b/DnsServerApp.NETCore/install-raspi.sh index a0f68b9b..3d4a519b 100644 --- a/DnsServerApp.NETCore/install-raspi.sh +++ b/DnsServerApp.NETCore/install-raspi.sh @@ -17,21 +17,21 @@ echo "" echo "===============================" echo "Technitium DNS Server Installer" echo "===============================" -echo "" -echo "Installing dependencies..." - -until apt-get -y update >> $installLog 2>&1 && apt-get -y install curl libunwind8 gettext apt-transport-https >> $installLog 2>&1 -do - echo "Trying again.." - sleep 2 -done - echo "" if [ -d "$aspnetcoreTestDir" ] && [ -f "/usr/bin/dotnet" ] then echo ".NET Core Runtime was found installed." else + echo "Installing dependencies..." + + until apt-get -y update >> $installLog 2>&1 && apt-get -y install curl libunwind8 gettext apt-transport-https >> $installLog 2>&1 + do + echo "Trying again.." + sleep 2 + done + + echo "" echo "Downloading .NET Core Runtime..." mkdir -p $aspnetcoreDir