From ee6126976687659d6f304d233ea58548fb644182 Mon Sep 17 00:00:00 2001 From: Christopher Stadler Date: Thu, 18 Apr 2024 00:19:32 +0200 Subject: [PATCH] fix: run line tests --- web-build/snowflake-odbc/download-package | 4 +++- web-build/snowflake-odbc/modify-dockerfile | 6 +++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/web-build/snowflake-odbc/download-package b/web-build/snowflake-odbc/download-package index 10df6c5..774487b 100755 --- a/web-build/snowflake-odbc/download-package +++ b/web-build/snowflake-odbc/download-package @@ -1,7 +1,9 @@ #!/usr/bin/env bash #ddev-generated -set -e +set -o errtrace +set -o errexit +set -o pipefail if [ "$GOARCH" = "amd64" ]; then ARCH="x86_64"; diff --git a/web-build/snowflake-odbc/modify-dockerfile b/web-build/snowflake-odbc/modify-dockerfile index 41c0ea4..befe947 100755 --- a/web-build/snowflake-odbc/modify-dockerfile +++ b/web-build/snowflake-odbc/modify-dockerfile @@ -1,7 +1,9 @@ #!/usr/bin/env bash #ddev-generated -set -e +set -o errtrace +set -o errexit +set -o pipefail PACKAGE_PATH="./snowflake-odbc" TMP_PATH="/tmp" @@ -53,6 +55,8 @@ remove_directives() { echo "$LINE" >> "$TMP_FILE" fi done < "$FILE_PATH" + + cat "$TMP_FILE" > "$FILE_PATH" } FILE_PATH="./web-build/Dockerfile"