From 5ed05d34acafb803164b46eeab8216a1f4752fe6 Mon Sep 17 00:00:00 2001 From: John Luo Date: Sat, 28 Nov 2015 17:22:58 -0800 Subject: [PATCH] Adding directory existence check for nuget-install --- build/_k-standard-goals.shade | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build/_k-standard-goals.shade b/build/_k-standard-goals.shade index 6b3c50b67f..f233203b28 100644 --- a/build/_k-standard-goals.shade +++ b/build/_k-standard-goals.shade @@ -202,7 +202,7 @@ default NUGET_FEED = 'https://api.nuget.org/v3/index.json' } } -#nuget-install target='install' description='Install NuGet packages to local repo' +#nuget-install target='install' if='Directory.Exists("src")' description='Install NuGet packages to local repo' kpm-publish sourcePackagesDir='${BUILD_DIR}' targetPackagesDir='${E("PACKAGES_PUBLISH_DIR")}' nuget-resilient-publish sourcePackagesDir='${BUILD_DIR}' nugetFeed='${E("NUGET_PUBLISH_FEED")}' if='!string.IsNullOrEmpty(E("NUGET_PUBLISH_FEED"))'