aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar Mehrdad Afshari <mmx@google.com>2018-01-18 09:57:15 -0800
committerGravatar Mehrdad Afshari <mmx@google.com>2018-01-18 09:57:15 -0800
commitadf6c95ab7edea73b7c5ae921678026c27526458 (patch)
tree00028c9d0a12288245934f27aeaf09604a118100
parent8725b77e0b3406481bd6c8e6a7916896bc30652d (diff)
Make build_artifact_ruby.sh pass shellcheck (with suppressions)
-rwxr-xr-xtools/run_tests/artifacts/build_artifact_ruby.sh8
1 files changed, 5 insertions, 3 deletions
diff --git a/tools/run_tests/artifacts/build_artifact_ruby.sh b/tools/run_tests/artifacts/build_artifact_ruby.sh
index 9165a22484..5ab4cf21b4 100755
--- a/tools/run_tests/artifacts/build_artifact_ruby.sh
+++ b/tools/run_tests/artifacts/build_artifact_ruby.sh
@@ -14,9 +14,9 @@
# limitations under the License.
set -ex
-SYSTEM=`uname | cut -f 1 -d_`
+SYSTEM=$(uname | cut -f 1 -d_)
-cd $(dirname $0)/../../..
+cd "$(dirname "$0")/../../.."
set +ex
[[ -s /etc/profile.d/rvm.sh ]] && . /etc/profile.d/rvm.sh
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm"
@@ -46,7 +46,9 @@ export DOCKERHUB_ORGANIZATION=grpctesting
rake gem:native
if [ "$SYSTEM" == "Darwin" ] ; then
- rm `ls pkg/*.gem | grep -v darwin`
+ # TODO: consider rewriting this to pass shellcheck
+ # shellcheck disable=SC2046,SC2010
+ rm $(ls pkg/*.gem | grep -v darwin)
fi
mkdir -p "${ARTIFACTS_OUT}"