File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -237,14 +237,16 @@ function usage($command)
237237 }
238238 } else {
239239 // Use download URL: Check if there is a saved package from a previous download.
240- $ previousMajorPackage = $ previousBuildPackagePath . '/ ' . basename ($ previousMajorDownload );
240+ $ previousMajorPackage = $ previousBuildPackagePath . '/ ' . preg_replace ( ' /\?.*$/ ' , '' , basename ($ previousMajorDownload) );
241241
242242 if (!isset ($ options ['reuse ' ]) || !is_file ($ previousMajorPackage )) {
243+ @mkdir ($ previousBuildPackagePath , 0755 , true );
244+
243245 // Download package.
244246 echo PHP_EOL ;
245247 echo 'Downloading package " ' . $ previousMajorDownload . '". ' . PHP_EOL ;
246248
247- system ('curl -L -o ' . $ previousMajorPackage . ' ' . $ previousMajorDownload );
249+ system ('curl -L -o " ' . $ previousMajorPackage . '" ' . $ previousMajorDownload );
248250 }
249251
250252 if (!is_file ($ previousMajorPackage )) {
You can’t perform that action at this time.
0 commit comments