diff --git a/build b/build index a21d8af16c..f96376b39b 100755 --- a/build +++ b/build @@ -28,7 +28,7 @@ toolsDir="$buildDir/tools" packagesDir="$buildDir/lib/nuget" nugetExe="$toolsDir/NuGet/$nugetVersion/nuget.exe" packagesConfigFile="$rootDir/packages.config" -cakeVersion="$(sed -nE "s|\s*\s*|\1|p" $packagesConfigFile)" +cakeVersion="$(sed -nE "/id=\"Cake\"/s/.*version=\"(.+)\".*/\1/p" $packagesConfigFile)" cakeExe="$packagesDir/Cake.$cakeVersion/Cake.exe" nugetDir="$(dirname $nugetExe)"