Skip to content

Commit 0ab64ee

Browse files
Remove the fixed header in the curl command line
1 parent 1e62614 commit 0ab64ee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ case "${CONTAINER_TOOL}" in
223223
LATESTSENSOR=$($CONTAINER_TOOL image search --list-tags "$cs_registry/$SENSORTYPE/$FALCON_CLOUD/release/falcon-sensor" | grep "$SENSOR_VERSION" | tail -1 | cut -d" " -f3);;
224224
*docker)
225225
REGISTRYBEARER=$(echo "-u fc-$cs_falcon_cid:$ART_PASSWORD" | curl -s -L "https://$cs_registry/v2/token?=fc-$cs_falcon_cid&scope=repository:$SENSORTYPE/$FALCON_CLOUD/release/falcon-sensor:pull&service=registry.crowdstrike.com" -K- | json_value "token" | sed 's/ *$//g' | sed 's/^ *//g')
226-
LATESTSENSOR=$(echo "authorization: Bearer $REGISTRYBEARER" | curl -s -L "authorization: Bearer ${REGISTRYBEARER}" "https://$cs_registry/v2/$SENSORTYPE/$FALCON_CLOUD/release/falcon-sensor/tags/list" -H @- | sed 's/ /\n/g' | grep "$SENSOR_VERSION" | sed -e 's/[" },]*\|]//g' -e '/^[[:space:]]*$/d' | tail -1);;
226+
LATESTSENSOR=$(echo "authorization: Bearer $REGISTRYBEARER" | curl -s -L "https://$cs_registry/v2/$SENSORTYPE/$FALCON_CLOUD/release/falcon-sensor/tags/list" -H @- | sed 's/ /\n/g' | grep "$SENSOR_VERSION" | sed -e 's/[" },]*\|]//g' -e '/^[[:space:]]*$/d' | tail -1);;
227227
*skopeo)
228228
LATESTSENSOR=$($CONTAINER_TOOL list-tags "docker://$cs_registry/$SENSORTYPE/$FALCON_CLOUD/release/falcon-sensor" | grep "$SENSOR_VERSION" | sed -e 's/[" }\]]*//g' -e "s/,//g" -e '/^[[:space:]]*$/d' | tail -1) ;;
229229
*) die "Unrecognized option: ${CONTAINER_TOOL}";;

0 commit comments

Comments
 (0)