Skip to content

Commit

Permalink
Merge pull request #82 from kenneth-dsouza/skopeo_fix
Browse files Browse the repository at this point in the history
rhcos-toolbox(skopeo): Pass env to sudo when required
  • Loading branch information
cgwalters committed Jan 31, 2023
2 parents 44c782f + 3c02d8e commit 934843e
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 934843e

Please sign in to comment.