summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEudyptula <eitan@mosenkis.net>2009-07-21 18:32:55 -0400
committerEudyptula <eitan@mosenkis.net>2009-07-21 18:32:55 -0400
commitd9e451fc01041dcbbc7558325c52783abf0efadd (patch)
treefb4e11774286c18da57ccc4130af2d466cced94f /backend/functions/makedirs.php
parentAdded bkisofs ISO manipulation library and wrote CLI wrapper for it (diff)
downloadingenue-d9e451fc01041dcbbc7558325c52783abf0efadd.tar.gz
ingenue-d9e451fc01041dcbbc7558325c52783abf0efadd.tar.bz2
ingenue-d9e451fc01041dcbbc7558325c52783abf0efadd.zip
Integrated bkisofs-cli into livecd and installcd bundlers, fixed various things in bkisofs-cli and the backend
Diffstat (limited to 'backend/functions/makedirs.php')
-rw-r--r--backend/functions/makedirs.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/backend/functions/makedirs.php b/backend/functions/makedirs.php
index eb572c9..68b0ba4 100644
--- a/backend/functions/makedirs.php
+++ b/backend/functions/makedirs.php
@@ -13,6 +13,7 @@ function makedir($dir) {
global $workdir;
if (substr($dir, 0, 1) != '/')
$dir="$workdir/$dir";
- fatal(log_status('Creating '.$dir, mkdir($dir, 0700, true)));
+ if (!is_dir($dir))
+ fatal(log_status('Creating '.$dir, mkdir($dir, 0700, true)));
}
?>