diff --git a/scripts/build-release.sh b/scripts/build-release.sh index 33ed77c..ab2c27f 100755 --- a/scripts/build-release.sh +++ b/scripts/build-release.sh @@ -56,13 +56,16 @@ function build { zip -r "$TARGET" ./ cd - else + TARGET="${PWD}/bin/log4jscanner-${VERSION}-${GOOS}-${GOARCH}.tar.gz" tar \ --group=root \ --owner=root \ -czvf \ - "${PWD}/bin/log4jscanner-${VERSION}-${GOOS}-${GOARCH}.tar.gz" \ + "$TARGET" \ -C "$TEMP_DIR" \ - "./" + "./log4jscanner" + # Print the contents of the TAR so we can visually debug it during CI. + tar -ztvf "$TARGET" fi rm -rf "$TEMP_DIR" }