From 62b0a6365419b05d6f03b66dc8bbd9947483b42f Mon Sep 17 00:00:00 2001 From: Enric Morales Date: Wed, 10 Jul 2024 22:07:46 +0200 Subject: [PATCH] gruntfile: clean collection after unzipping Co-authored-by: Alberto Merino Co-authored-by: Enric Morales Co-authored-by: Roland Coeurjoly If we run the `clean:collection` task after unzipping, we allow downloading the file manually into the cache directory so that the unzip task doesn't try downloading it again. --- Gruntfile.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Gruntfile.js b/Gruntfile.js index bf30275e2..385955392 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -693,9 +693,9 @@ module.exports = function (grunt) { //-- This task is called in the npm postinstallation //-- (after npm install is executed) grunt.registerTask("getcollection", [ - "clean:collection", //-- Remove previous collection downloaded "wget:collection", //-- Download the collection - "unzip" //-- Unzip the collection (install it) + "unzip", //-- Unzip the collection (install it) + "clean:collection" //-- Remove previously downloaded collection ]); //-- grunt server