Fix absent directory error in `install-jsdeps.sh` when processing `maps` section (#5819)

pull/5890/head
Kai Ren 7 years ago committed by Aleksander Machniak
parent 2c6cc41c8f
commit da63acbd0d

@ -215,6 +215,9 @@ function extract_zipfile($package, $srcfile)
// unzip the archive and map source to dest files/directories
else if (!empty($package['map'])) {
$extract = $CACHEDIR . '/' . $package['lib'] . '-extract';
if (!is_dir($extract)) {
mkdir($extract, 0774, true);
}
exec(sprintf('%s -o %s -d %s', $UNZIP, escapeshellarg($srcfile), $extract), $out, $retval);
// get the root folder of the extracted package

Loading…
Cancel
Save