Skip to content

Commit

Permalink
rhcos-toolbox(skopeo): Pass env to sudo when required
Browse files Browse the repository at this point in the history
Allow HTTP_PROXY and HTTPS_PROXY to pass through to
skopeo.

Signed-off-by: Kenneth D'souza <kennethdsouza94@gmail.com>
  • Loading branch information
kenneth-dsouza committed Jan 23, 2023
1 parent 44c782f commit 3c02d8e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rhcos-toolbox
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ image_fresh() {
errecho "Checking if there is a newer version of ${TOOLBOX_IMAGE} available..."
local_date=$(sudo podman image inspect "${TOOLBOX_IMAGE}" --format '{{.Created}}')

if ! remote_date=$(sudo skopeo inspect --authfile "${AUTHFILE}" docker://"${TOOLBOX_IMAGE}" --format '{{.Created}}'); then
if ! remote_date=$(sudo --preserve-env skopeo inspect --authfile "${AUTHFILE}" docker://"${TOOLBOX_IMAGE}" --format '{{.Created}}'); then
errecho "Error inspecting ${TOOLBOX_IMAGE} via skopeo"
return
fi
Expand Down

0 comments on commit 3c02d8e

Please sign in to comment.