|
|
@ -15,12 +15,14 @@ |
|
|
|
|
|
|
|
|
|
|
|
set -e |
|
|
|
set -e |
|
|
|
|
|
|
|
|
|
|
|
cd $(dirname $0) |
|
|
|
cd "$(dirname "$0")" |
|
|
|
|
|
|
|
|
|
|
|
CSHARP_VERSION="$1" |
|
|
|
CSHARP_VERSION="$1" |
|
|
|
if [ "$CSHARP_VERSION" == "auto" ] |
|
|
|
if [ "$CSHARP_VERSION" == "auto" ] |
|
|
|
then |
|
|
|
then |
|
|
|
# autodetect C# version from the name of Grpc.Core.0.0.0-x.nupkg file |
|
|
|
# autodetect C# version from the name of Grpc.Core.0.0.0-x.nupkg file |
|
|
|
|
|
|
|
# TODO: find a better shellcheck-compliant way to write the following line |
|
|
|
|
|
|
|
# shellcheck disable=SC2010 |
|
|
|
CSHARP_VERSION=$(ls TestNugetFeed | grep -m 1 '^Grpc\.Core\.[0-9].*\.nupkg$' | sed s/^Grpc\.Core\.// | sed s/\.nupkg$// | sed s/\.symbols$//) |
|
|
|
CSHARP_VERSION=$(ls TestNugetFeed | grep -m 1 '^Grpc\.Core\.[0-9].*\.nupkg$' | sed s/^Grpc\.Core\.// | sed s/\.nupkg$// | sed s/\.symbols$//) |
|
|
|
echo "Autodetected nuget ${CSHARP_VERSION}" |
|
|
|
echo "Autodetected nuget ${CSHARP_VERSION}" |
|
|
|
fi |
|
|
|
fi |
|
|
|