Skip to content
Snippets Groups Projects
Commit 79f19028 authored by nimrod's avatar nimrod
Browse files

fixup! Don't complain on missing files.

parent 8e306868
No related branches found
No related tags found
No related merge requests found
Pipeline #2987 passed
......@@ -36,7 +36,7 @@ NR>2 {
image_url = registry "/" $1 ":" $(i)
image_file = dest "/" $1 "/" $(i) ".tar"
printf "Saving %s to %s.\n", image_url, image_file
system("[ -f " image_file " ] || rm " image_file)
system("[ ! -f " image_file " ] || rm " image_file)
if (system("skopeo copy docker://" image_url " docker-archive://" image_file) == 0)
printf "Backup of %s was successful.\n", image_url
else {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment