From 685a9370e4735bf479ae5ef301c4691d328a5697 Mon Sep 17 00:00:00 2001 From: neomatrix369 Date: Fri, 19 May 2017 08:54:00 +0100 Subject: [PATCH] Amended the downloadingRequiredDependencies() to skip downloading of Alsa, Freetype, and CaCerts when running the windows build --- sbin/common-functions.sh | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/sbin/common-functions.sh b/sbin/common-functions.sh index 8b7ee3e44..2e401eecd 100644 --- a/sbin/common-functions.sh +++ b/sbin/common-functions.sh @@ -104,8 +104,12 @@ checkingAndDownloadCaCerts() downloadingRequiredDependencies() { - echo "Downloading required dependencies...: Alsa, Freetype, and CaCerts." - checkingAndDownloadingAlsa - checkingAndDownloadingFreeType - checkingAndDownloadCaCerts + if [[ "$OSTYPE" == "cygwin" ]] || [[ "$OSTYPE" == "msys" ]] ; then + echo "Windows or Windows-like environment detected, skipping downloading of dependencies...: Alsa, Freetype, and CaCerts." + else + echo "Downloading required dependencies...: Alsa, Freetype, and CaCerts." + checkingAndDownloadingAlsa + checkingAndDownloadingFreeType + checkingAndDownloadCaCerts + fi }