From 81a365a2de87d750463bcbf8988b1abff2641b86 Mon Sep 17 00:00:00 2001 From: Yihau Chen Date: Wed, 28 Jun 2023 01:22:46 +0800 Subject: [PATCH] Update .buildkite/hooks/post-checkout Co-authored-by: Trent Nelson --- .buildkite/hooks/post-checkout | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.buildkite/hooks/post-checkout b/.buildkite/hooks/post-checkout index 0804f46639a178..c30d0bbc18e5b8 100644 --- a/.buildkite/hooks/post-checkout +++ b/.buildkite/hooks/post-checkout @@ -12,8 +12,7 @@ source ci/env.sh ( echo "+++ Killing stale docker containers" while read -r line; do - id="$(echo "$line" | awk '{print $1}')" - image="$(echo "$line" | awk '{print $2}')" + read id image _ <<<"$line" if [[ $image == *"solanalabs/rust"* ]]; then if docker kill "$id" >/dev/null; then