From 71d80a1171cb376c2d11bc239194bde58aaf11b6 Mon Sep 17 00:00:00 2001 From: Marian Koncek Date: Mon, 27 Jan 2020 16:33:48 +0100 Subject: [PATCH] Properly compress tarballs --- generate-tarball.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/generate-tarball.sh b/generate-tarball.sh index 119d648..e1b0a75 100755 --- a/generate-tarball.sh +++ b/generate-tarball.sh @@ -10,13 +10,13 @@ wget "https://github.com/cbeust/testng/archive/${upstream_version}.tar.gz" -O "$ rm -rf tarball-tmp mkdir tarball-tmp -cd tarball-tmp +pushd tarball-tmp tar xf "../${name}-${upstream_version}.orig.tar.gz" # CLEAN TARBALL rm -r */gradle* */kobalt* rm */src/main/resources/org/testng/jquery-*.js -tar cf "../${name}-${version}.tar.gz" * -cd .. +tar -czf "../${name}-${version}.tar.gz" * +popd rm -r tarball-tmp "${name}-${upstream_version}.orig.tar.gz"