Skip to content

Commit

Permalink
chore: move variable initialization
Browse files Browse the repository at this point in the history
Move it after `set -x` so we can use DEBUG.

PR: #139
  • Loading branch information
jbergstroem committed Feb 2, 2024
1 parent b403573 commit 78f31aa
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions install.sh
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
#!/usr/bin/env bash

CI=${GITHUB_ACTIONS:-}

[[ -n "${DEBUG}" ]] && set -x
set -euo pipefail
shopt -s nullglob globstar

[[ -z ${CI} ]] && echo "Will only run in Github Actions" && exit 1

CI=${GITHUB_ACTIONS:-}
VERSION=${version:-}

[[ -z ${CI} ]] && echo "Will only run in Github Actions" && exit 1

DOWNLOAD="false"
# Check if hadolint is installed and compare versions to decide
# if we should download a new version
Expand Down

0 comments on commit 78f31aa

Please sign in to comment.