From fd782abe992ff14f35819a150c54c9244bfce6ac Mon Sep 17 00:00:00 2001 From: Andrew Schwartzmeyer Date: Fri, 29 Jan 2016 17:20:07 -0800 Subject: [PATCH] Make dotnet-nightly workaround version-agnostic If the `Debug/dnxcore50` path does not exist, don't worry about it. --- build.ps1 | 2 +- build.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/build.ps1 b/build.ps1 index 40b19e32e6..e569b74631 100755 --- a/build.ps1 +++ b/build.ps1 @@ -12,7 +12,7 @@ cd ../.. cd src/Microsoft.PowerShell.Linux.Host dotnet publish --framework dnxcore50 --output $BIN # Temporary fix for dotnet publish -cp $BIN/Debug/dnxcore50/* $BIN +if (Test-Path $BIN/Debug/dnxcore50) { cp $BIN/Debug/dnxcore50/* $BIN } # Copy files that dotnet-publish does not currently deploy cp *_profile.ps1 $BIN cd ../.. diff --git a/build.sh b/build.sh index e0b2340c8c..300775cacf 100755 --- a/build.sh +++ b/build.sh @@ -35,7 +35,7 @@ mkdir -p $BIN/Modules cd src/Microsoft.PowerShell.Linux.Host dotnet publish --framework dnxcore50 --output $BIN # Temporary fix for dotnet publish - cp $BIN/Debug/dnxcore50/* $BIN + [[ -d $BIN/Debug/dnxcore50 ]] && cp $BIN/Debug/dnxcore50/* $BIN # Copy files that dotnet-publish does not currently deploy cp *_profile.ps1 $BIN )