From cad25aff1ac21fa37dfe81f6a72153bbe0c3db8a Mon Sep 17 00:00:00 2001 From: Ben Napolitan Date: Thu, 18 Jun 2020 13:26:51 -0400 Subject: [PATCH] Fix file output syntax. --- scripts/lib/common.sh | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/scripts/lib/common.sh b/scripts/lib/common.sh index 692d821973..893fc342a4 100644 --- a/scripts/lib/common.sh +++ b/scripts/lib/common.sh @@ -80,12 +80,10 @@ function run_scale_test_130_pods() { now="pod-130-scale-test-data-$(date +"%m-%d-%Y-%T").csv" echo $now - cat << EOF > $now - $(date +"%m-%d-%Y-%T") - $((SCALE_UP_DURATION_ARRAY[0])), $((SCALE_DOWN_DURATION_ARRAY[0])) - $((SCALE_UP_DURATION_ARRAY[1])), $((SCALE_DOWN_DURATION_ARRAY[1])) - $((SCALE_UP_DURATION_ARRAY[2])), $((SCALE_DOWN_DURATION_ARRAY[2])) - EOF + echo $(date +"%m-%d-%Y-%T") >> $now + echo $((SCALE_UP_DURATION_ARRAY[0])), $((SCALE_DOWN_DURATION_ARRAY[0])) >> $now + echo $((SCALE_UP_DURATION_ARRAY[1])), $((SCALE_DOWN_DURATION_ARRAY[1])) >> $now + echo $((SCALE_UP_DURATION_ARRAY[2])), $((SCALE_DOWN_DURATION_ARRAY[2])) >> $now cat $now aws s3 cp $now s3://cni-scale-test-data