aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/distrib/csharp/update_version.sh
diff options
context:
space:
mode:
Diffstat (limited to 'test/distrib/csharp/update_version.sh')
-rwxr-xr-xtest/distrib/csharp/update_version.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/distrib/csharp/update_version.sh b/test/distrib/csharp/update_version.sh
index 2e9050cb98..734ec21ba2 100755
--- a/test/distrib/csharp/update_version.sh
+++ b/test/distrib/csharp/update_version.sh
@@ -15,12 +15,14 @@
set -e
-cd $(dirname $0)
+cd "$(dirname "$0")"
CSHARP_VERSION="$1"
if [ "$CSHARP_VERSION" == "auto" ]
then
# 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$//)
echo "Autodetected nuget ${CSHARP_VERSION}"
fi