feat: Remove downloaded archives after uncompressing
This commit is contained in:
parent
b496a3f1af
commit
b19e527e55
4
warp4j
4
warp4j
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user