I am trying to do an iterative loop with a skopeo copy. I have tried:
export image_name=$(sed -e 's/\-[^*]*$//' "$line"); export version=$(sed -e 's/[^0-9.]*//' "$line" | sed 's/.tar//'); IFS=$'\n' for line in "$(cat list_files.txt)"; do skopeo copy \ docker-archive:/opt/app-root/src/"$line" \ docker://private/dsop/test/"$image_name":"$version" \ --dest-creds="$USERNAME":"$PASSWORD" \ --dest-tls-verify=false done My variables are rightly placed, but it doesn't seem to hand it off properly to my command. Can anyone point out my problem?