Skip to content

Commit bc7a092

Browse files
chore(container-pull): clean up version resolution comments
1 parent 44f3517 commit bc7a092

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

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

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -921,12 +921,10 @@ if [ "${ERROR}" = "true" ]; then
921921
die "ERROR: ${CONTAINER_TOOL} login failed. Error message: ${error_message}"
922922
fi
923923

924-
#Get latest sensor version
925924
# Resolve channel keywords (latest, N-1, N-2, LTS, LTS-1) to version prefixes.
926-
# die() inside resolve_version_channel exits the subshell with code 1;
927-
# set -e (active since line 7) propagates that to the parent script.
928925
RESOLVED_VERSION=$(resolve_version_channel "$SENSOR_VERSION")
929926

927+
# Get latest sensor version
930928
# match_sensor_version returns 1 for "no match" — a soft failure we handle below.
931929
set +e
932930
LATESTSENSOR=$(match_sensor_version "$RESOLVED_VERSION")

0 commit comments

Comments
 (0)