repackage all file in notarization temp dir (not from tar output) (#792)

Signed-off-by: Alex Goodman <alex.goodman@anchore.com>
This commit is contained in:
Alex Goodman
2022-02-04 19:04:15 +00:00
committed by GitHub
parent 3f50bb8fa7
commit d3469801fc
+1 -1
View File
@@ -25,7 +25,7 @@ repackage() {
tmp_dir=$(mktemp -d)
cd "$tmp_dir"
# redirect stdout to stderr to preserve the return value
tar xzf "$archive" && zip "$new_archive" $(tar tf "$archive") 1>&2
tar xzf "$archive" && zip "$new_archive" ./* 1>&2
rm -rf "$tmp_dir"
)
echo "$new_archive"