From 97eeb2fbfa494541a2a4cc3154d99a1bec0775be Mon Sep 17 00:00:00 2001 From: Noah Kawasaki <68556134+noahkawasakigoogle@users.noreply.github.com> Date: Wed, 19 Jan 2022 17:41:32 -0800 Subject: [PATCH] Fix generate.sh from bad trap for ERR signal in by using bash instead of sh (#9243) --- .../connector-templates/generator/generate.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/airbyte-integrations/connector-templates/generator/generate.sh b/airbyte-integrations/connector-templates/generator/generate.sh index fabe0395be49..b7714d5ceb27 100755 --- a/airbyte-integrations/connector-templates/generator/generate.sh +++ b/airbyte-integrations/connector-templates/generator/generate.sh @@ -1,4 +1,4 @@ -#!/usr/bin/env sh +#!/usr/bin/env bash error_handler() { echo "While trying to generate a connector, an error occurred on line $1 of generate.sh and the process aborted early. This is probably a bug." @@ -21,10 +21,10 @@ docker build --build-arg UID="$_UID" --build-arg GID="$_GID" . -t airbyte/connec # Run the container and mount the airbyte folder if [ $# -eq 2 ]; then echo "2 arguments supplied: 1=$1 2=$2" - docker run --name airbyte-connector-bootstrap --user $_UID:$_GID -e HOME=/tmp -e package_desc="$1" -e package_name="$2" -v "$(pwd)/../../../.":/airbyte airbyte/connector-bootstrap + docker run --name airbyte-connector-bootstrap --user "$_UID:$_GID" -e HOME=/tmp -e package_desc="$1" -e package_name="$2" -v "$(pwd)/../../../.":/airbyte airbyte/connector-bootstrap else echo "Running generator..." - docker run --rm -it --name airbyte-connector-bootstrap --user $_UID:$_GID -e HOME=/tmp -v "$(pwd)/../../../.":/airbyte airbyte/connector-bootstrap + docker run --rm -it --name airbyte-connector-bootstrap --user "$_UID:$_GID" -e HOME=/tmp -v "$(pwd)/../../../.":/airbyte airbyte/connector-bootstrap fi echo "Finished running generator"