From f5aea0c4b36857e5cc3a63ed6b6846c9a6944959 Mon Sep 17 00:00:00 2001 From: Mehrdad Afshari Date: Wed, 7 Feb 2018 13:35:44 -0800 Subject: Make csharp/update_version.sh pass shellcheck (with suppresion) --- test/distrib/csharp/update_version.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'test/distrib') 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 -- cgit v1.2.3