From 0c1d8dbd20faba453f2a620388387f0c5b3b8d88 Mon Sep 17 00:00:00 2001 From: Janik <10290002+led0nk@users.noreply.github.com> Date: Wed, 3 Apr 2024 17:54:13 +0200 Subject: [PATCH] severity=warning / fix build.sh --- .github/workflows/shellcheck.yaml | 2 ++ internal/buildscripts/packaging/fpm/deb/build.sh | 2 +- internal/buildscripts/packaging/fpm/rpm/build.sh | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/shellcheck.yaml b/.github/workflows/shellcheck.yaml index e212cf93fc2e..1cb76723aa37 100644 --- a/.github/workflows/shellcheck.yaml +++ b/.github/workflows/shellcheck.yaml @@ -18,9 +18,11 @@ jobs: SHELLCHECK_OPTS: -x -e SC2059 -e SC2086 with: scandir: '.github/workflows/scripts' + severity: warning - name: shellcheck buildscripts uses: ludeeus/action-shellcheck@master env: SHELLCHECK_OPTS: -x -e SC2059 -e SC2086 with: scandir: 'internal/buildscripts' + severity: warning diff --git a/internal/buildscripts/packaging/fpm/deb/build.sh b/internal/buildscripts/packaging/fpm/deb/build.sh index c27429cc17a0..b07fff55ea2e 100755 --- a/internal/buildscripts/packaging/fpm/deb/build.sh +++ b/internal/buildscripts/packaging/fpm/deb/build.sh @@ -12,7 +12,7 @@ ARCH="${2:-"amd64"}" OUTPUT_DIR="${3:-"$REPO_DIR/dist/"}" OTELCONTRIBCOL_PATH="$REPO_DIR/bin/otelcontribcol_linux_$ARCH" -."$SCRIPT_DIR"/../common.sh +. "$SCRIPT_DIR"/../common.sh if [[ -z "$VERSION" ]]; then latest_tag="$( git describe --abbrev=0 --match v[0-9]* )" diff --git a/internal/buildscripts/packaging/fpm/rpm/build.sh b/internal/buildscripts/packaging/fpm/rpm/build.sh index 10ce9f18a916..4b2d072c62cb 100755 --- a/internal/buildscripts/packaging/fpm/rpm/build.sh +++ b/internal/buildscripts/packaging/fpm/rpm/build.sh @@ -12,7 +12,7 @@ ARCH="${2:-"amd64"}" OUTPUT_DIR="${3:-"$REPO_DIR/dist/"}" OTELCONTRIBCOL_PATH="$REPO_DIR/bin/otelcontribcol_linux_$ARCH" -."$SCRIPT_DIR"/../common.sh +. "$SCRIPT_DIR"/../common.sh if [[ -z "$VERSION" ]]; then latest_tag="$( git describe --abbrev=0 --match v[0-9]* )"