From 8d7b921c28b20f2e858703bad21b270081f2a069 Mon Sep 17 00:00:00 2001 From: bub <57535312+bubtheengineer@users.noreply.github.com> Date: Sat, 3 Oct 2020 06:39:34 -0400 Subject: [PATCH] remove deprecated use of xargs -i for better compatibility --- get_region_and_token.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/get_region_and_token.sh b/get_region_and_token.sh index f9e5057..7ffc64b 100755 --- a/get_region_and_token.sh +++ b/get_region_and_token.sh @@ -92,7 +92,7 @@ fi echo Testing regions that respond \ faster than $MAX_LATENCY seconds: bestRegion="$(echo "$summarized_region_data" | - xargs -i bash -c 'printServerLatency {}' | + xargs -I{} bash -c 'printServerLatency {}' | sort | head -1 | awk '{ print $2 }')" if [ -z "$bestRegion" ]; then