mirror of
https://github.com/tofuutils/pre-commit-opentofu.git
synced 2025-10-15 17:38:54 +02:00
chore: Add hadolint check for Dockerfiles (#322)
Co-authored-by: Balazs Hamorszky <balihb@gmail.com>
This commit is contained in:
parent
321fb16693
commit
47229003ff
6 changed files with 46 additions and 18 deletions
|
|
@ -73,8 +73,8 @@ function infracost_breakdown_ {
|
|||
}; then
|
||||
check="${check:1:-1}"
|
||||
fi
|
||||
# shellcheck disable=SC2207 # Can't find working `read` command
|
||||
operations=($(echo "$check" | grep -oE '[!<>=]{1,2}'))
|
||||
|
||||
mapfile -t operations < <(echo "$check" | grep -oE '[!<>=]{1,2}')
|
||||
# Get the very last operator, that is used in comparison inside `jq` query.
|
||||
# From the example below we need to pick the `>` which is in between `add` and `1000`,
|
||||
# but not the `!=`, which goes earlier in the `jq` expression
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue