use parent dir for notarization zip (#804)

Signed-off-by: Alex Goodman <alex.goodman@anchore.com>
This commit is contained in:
Alex Goodman
2022-02-07 22:50:48 +00:00
committed by GitHub
parent 2c62651c82
commit b78c90d018
+4 -1
View File
@@ -19,7 +19,10 @@ notarize() {
title "archiving release binary into ${archive_path}"
zip "${archive_path}" "${binary_path}"
parent=$(dirname "$binary_path")
(
cd "${parent}" && zip "${archive_path}" "$(basename ${binary_path})"
)
if [ ! -f "$archive_path" ]; then
exit_with_error "cannot find payload for notarization: $archive_path"