From 1f0c884654e13bb12765e5c99492c3aed1c99218 Mon Sep 17 00:00:00 2001 From: Moviuro Date: Sun, 7 Jun 2015 17:08:36 +0200 Subject: [PATCH] thirdparty/fetch-thirdparty-deps.sh: silence the nuget check --- thirdparty/fetch-thirdparty-deps.sh | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/thirdparty/fetch-thirdparty-deps.sh b/thirdparty/fetch-thirdparty-deps.sh index a265022828..21e98ed18a 100755 --- a/thirdparty/fetch-thirdparty-deps.sh +++ b/thirdparty/fetch-thirdparty-deps.sh @@ -8,14 +8,17 @@ download_dir="${0%/*}/download" mkdir -p "${download_dir}" cd "${download_dir}" -get() -{ - if which nuget >/dev/null; then +if which nuget >/dev/null 2>&1; then + get() + { nuget install $1 -Version $2 -ExcludeVersion - else + } +else + get() + { ../noget.sh $1 $2 - fi -} + } +fi if [ ! -f StyleCopPlus.dll ]; then echo "Fetching StyleCopPlus from NuGet"