From 33e1337a28f3bada0ba2b05cf798b9f62b59d254 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Fri, 22 Jul 2011 16:00:01 +0800 Subject: [PATCH] JsCompile.php --- JsCompile.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/JsCompile.php b/JsCompile.php index 5b5885ee..3af77888 100644 --- a/JsCompile.php +++ b/JsCompile.php @@ -138,7 +138,9 @@ class Pman_Core_JsCompile extends Pman if ($max < $targetm) { return true; } - + if (!file_exists(dirname($output))) { + mkdir(dirname($output), 0755, true); + } $eoutput = escapeshellarg($output); $cmd = "$seed {$o['jspacker']}/pack.js -o $eoutput " . implode($ofiles, ' '); echo "$cmd\n"; -- 2.39.2