git.cweiske.de
/
surrogator.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
450b7bd
)
check if dir can be created
author
Christian Weiske
<
[email protected]
>
Thu, 16 Aug 2012 20:50:25 +0000
(22:50 +0200)
committer
Christian Weiske
<
[email protected]
>
Thu, 16 Aug 2012 20:50:25 +0000
(22:50 +0200)
surrogator.php
patch
|
blob
|
history
diff --git
a/surrogator.php
b/surrogator.php
index 460cfaa9188fb7d81c850895916c9863b8301c71..6270cdc6ae9ff0a9633c60c0e52b51761a787742 100755
(executable)
--- a/
surrogator.php
+++ b/
surrogator.php
@@
-85,7
+85,10
@@
if (!isset($logLevel)) {
if (!is_dir($varDir . '/square')) {
log('creating square dir: ' . $varDir . '/square');
- mkdir($varDir . '/square', 0755, true);
+ if (!mkdir($varDir . '/square', 0755, true)) {
+ logErr('cannot create square dir');
+ exit(5);
+ }
}
log('sizes: ' . implode(', ', $sizes), 2);
foreach ($sizes as $size) {