Make run_in_workspace.sh pass shellcheck (with suppressions)

pull/14071/head
Mehrdad Afshari 7 years ago
parent e8b8cbd7c8
commit 8725b77e0b
  1. 8
      tools/run_tests/artifacts/run_in_workspace.sh

@ -18,15 +18,19 @@
# All cmdline args will be executed as a command.
set -ex
cd $(dirname $0)/../../..
cd "$(dirname "$0")/../../.."
export repo_root=$(pwd)
# TODO: fix file to pass shellcheck
rm -rf "${WORKSPACE_NAME}"
git clone . "${WORKSPACE_NAME}"
# clone gRPC submodules, use data from locally cloned submodules where possible
# shellcheck disable=SC1004,SC2016
git submodule foreach 'cd "${repo_root}/${WORKSPACE_NAME}" \
&& git submodule update --init --reference ${repo_root}/${name} ${name}'
echo "Running in workspace ${WORKSPACE_NAME}"
cd ${WORKSPACE_NAME}
cd "${WORKSPACE_NAME}"
# shellcheck disable=SC2068
$@

Loading…
Cancel
Save