From aa7652eda5a18bc3d18a78d7b67976f9e96a0e6b Mon Sep 17 00:00:00 2001 From: Caleb Brown Date: Wed, 7 Feb 2024 15:23:53 +1100 Subject: [PATCH] Fix a bug where the RESULT_BUCKET env var wasn't used correctly. Signed-off-by: Caleb Brown --- scripts/bq_load.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) mode change 100644 => 100755 scripts/bq_load.sh diff --git a/scripts/bq_load.sh b/scripts/bq_load.sh old mode 100644 new mode 100755 index c555d023..350eba85 --- a/scripts/bq_load.sh +++ b/scripts/bq_load.sh @@ -37,8 +37,8 @@ fi union="" -for bucket_prefix in `gsutil ls "$BUCKET"`; do - prefix=`echo "$bucket_prefix" | sed "s|$BUCKET/\([^\]*\)/|\1|g"` +for bucket_prefix in `gsutil ls "$RESULT_BUCKET"`; do + prefix=`echo "$bucket_prefix" | sed "s|$RESULT_BUCKET/\([^\]*\)/|\1|g"` clean_prefix=`echo "$prefix" | tr -c -d "[:alnum:]"` table_name="$LOAD_TABLE_PREFIX$clean_prefix"