From b19e527e55bd28a75713dc5494bf02910c803545 Mon Sep 17 00:00:00 2001 From: Serge Guzik Date: Wed, 20 Feb 2019 14:20:55 +0200 Subject: [PATCH] feat: Remove downloaded archives after uncompressing --- warp4j | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/warp4j b/warp4j index b404d55..c6602b2 100755 --- a/warp4j +++ b/warp4j @@ -597,6 +597,10 @@ function ensure_distro_unpacked() { esac if [[ $? == 0 ]]; then touch "$download_dir/$MARKER_UNPACKED" + case $platform in + $WIN) rm "$download_dir"/*.zip ;; + *) rm "$download_dir"/*.tar.gz ;; + esac else fail_with "Failed to unpack $JVM_IMPL-$JAVA_DISTRO_TYPE-$version-$platform" fi