Skip to content

Commit e8ab6a4

Browse files
committed
style(container-pull): apply shfmt formatting fixes
1 parent 1dbe6a1 commit e8ab6a4

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

bash/containers/falcon-container-sensor-pull/falcon-container-sensor-pull.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -489,7 +489,7 @@ resolve_version_channel() {
489489
echo ""
490490
return 0
491491
;;
492-
n-1|n-2|lts|lts-1)
492+
n-1 | n-2 | lts | lts-1)
493493
all_tags=$(extract_raw_tags)
494494
if [ -z "$all_tags" ]; then
495495
die "No tags found for sensor type: ${SENSOR_TYPE}"
@@ -504,15 +504,15 @@ resolve_version_channel() {
504504

505505
case "$normalized" in
506506
n-1)
507-
major_minor_versions=$(echo "$all_tags" | grep -v "\-LTS" | \
507+
major_minor_versions=$(echo "$all_tags" | grep -v "\-LTS" |
508508
awk -F'.' '{ print $1"."$2 }' | sort -u -V)
509509
if [ "$(echo "$major_minor_versions" | wc -l)" -lt 2 ]; then
510510
die "Not enough versions available for N-1. Only $(echo "$major_minor_versions" | wc -l | tr -d ' ') major.minor version(s) found."
511511
fi
512512
target_version=$(echo "$major_minor_versions" | tail -2 | head -1)
513513
;;
514514
n-2)
515-
major_minor_versions=$(echo "$all_tags" | grep -v "\-LTS" | \
515+
major_minor_versions=$(echo "$all_tags" | grep -v "\-LTS" |
516516
awk -F'.' '{ print $1"."$2 }' | sort -u -V)
517517
if [ "$(echo "$major_minor_versions" | wc -l)" -lt 3 ]; then
518518
die "Not enough versions available for N-2. Only $(echo "$major_minor_versions" | wc -l | tr -d ' ') major.minor version(s) found."
@@ -951,7 +951,7 @@ RESOLVED_VERSION=$(resolve_version_channel "$SENSOR_VERSION")
951951
# match_sensor_version returns 1 for "no match" — a soft failure we handle below.
952952
set +e
953953
LATESTSENSOR=$(match_sensor_version "$RESOLVED_VERSION")
954-
set -e # Re-enable exit-on-error
954+
set -e # Re-enable exit-on-error
955955

956956
# Check if version matching was successful
957957
if [ -z "$LATESTSENSOR" ]; then

0 commit comments

Comments
 (0)