feat: Remove downloaded archives after uncompressing

This commit is contained in:
Serge Guzik 2019-02-20 14:20:55 +02:00
parent b496a3f1af
commit b19e527e55

4
warp4j
View File

@ -597,6 +597,10 @@ function ensure_distro_unpacked() {
esac esac
if [[ $? == 0 ]]; then if [[ $? == 0 ]]; then
touch "$download_dir/$MARKER_UNPACKED" touch "$download_dir/$MARKER_UNPACKED"
case $platform in
$WIN) rm "$download_dir"/*.zip ;;
*) rm "$download_dir"/*.tar.gz ;;
esac
else else
fail_with "Failed to unpack $JVM_IMPL-$JAVA_DISTRO_TYPE-$version-$platform" fail_with "Failed to unpack $JVM_IMPL-$JAVA_DISTRO_TYPE-$version-$platform"
fi fi