Skip to content

Commit f50deb9

Browse files
committed
Stop saving stderr in a file when running skopeo
1 parent 60600dc commit f50deb9

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

ansible/roles/iib_ci/tasks/mirror-related-images.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,9 @@
3333
right=$(grep "{{ image }}" "{{ iib_local_folder }}/mapping.txt" | cut -f2 -d=)
3434
right_base=$(echo $right | sed -e 's/:.*$//' -e 's/@.*$//')
3535
right_log=$(echo "${right_base}@${left_sha}" | sed -e 's/\//-/g')
36-
if skopeo inspect --authfile "{{ pull_secrets_tempfolder.path }}/.dockerconfigjson" --no-tags docker://"{{ image }}" &> /tmp/skopeo-"{{ image | regex_replace('/', '-') }}".log; then
36+
if skopeo inspect --authfile "{{ pull_secrets_tempfolder.path }}/.dockerconfigjson" --no-tags docker://"{{ image }}" > /tmp/skopeo-"{{ image | regex_replace('/', '-') }}".log; then
3737
echo "{{ image }}"
38-
elif skopeo inspect --authfile "{{ pull_secrets_tempfolder.path }}/.dockerconfigjson" --no-tags docker://"${right_base}@${left_sha}" &> "/tmp/skopeo-${right_log}.log"; then
38+
elif skopeo inspect --authfile "{{ pull_secrets_tempfolder.path }}/.dockerconfigjson" --no-tags docker://"${right_base}@${left_sha}" > "/tmp/skopeo-${right_log}.log"; then
3939
echo "${right_base}@${left_sha}"
4040
else
4141
echo "ERROR: both {{ image }} and echo ${right_base}@${left_sha} could not be found"

0 commit comments

Comments
 (0)