Skip to content
This repository has been archived by the owner on Jun 30, 2023. It is now read-only.

Commit

Permalink
scripts: don't include '.' in the release TAR file
Browse files Browse the repository at this point in the history
Also print the contents of the file after building to help debugging.
  • Loading branch information
ericchiang committed Jan 19, 2022
1 parent 80a2e5c commit 8b9b814
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions scripts/build-release.sh
Expand Up @@ -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"
}
Expand Down

0 comments on commit 8b9b814

Please sign in to comment.