diff options
author | Mehrdad Afshari <mmx@google.com> | 2018-02-07 13:35:44 -0800 |
---|---|---|
committer | Mehrdad Afshari <mmx@google.com> | 2018-02-07 13:35:44 -0800 |
commit | f5aea0c4b36857e5cc3a63ed6b6846c9a6944959 (patch) | |
tree | 6cad55f9ec82e71000ab1c6f3fc1296760847221 /test/distrib | |
parent | 7bf30d6b353b3a15b891a4fdbfd001617a695367 (diff) |
Make csharp/update_version.sh pass shellcheck (with suppresion)
Diffstat (limited to 'test/distrib')
-rwxr-xr-x | test/distrib/csharp/update_version.sh | 4 |
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 |