projects
/
Pman.Xtuple
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
92a610c
)
UpdateDatabase.php
author
Alan Knowles
<alan@roojs.com>
Fri, 15 Nov 2013 06:00:15 +0000
(14:00 +0800)
committer
Alan Knowles
<alan@roojs.com>
Fri, 15 Nov 2013 06:00:15 +0000
(14:00 +0800)
UpdateDatabase.php
patch
|
blob
|
history
diff --git
a/UpdateDatabase.php
b/UpdateDatabase.php
index
b78e04c
..
3ed1c33
100644
(file)
--- a/
UpdateDatabase.php
+++ b/
UpdateDatabase.php
@@
-86,6
+86,14
@@
class Pman_Xtuple_UpdateDatabase extends Pman
die("--base=XXX must be set when using --init ");
}
+ foreach($opts as $o=>$v) {
+ if (!empty(preg_match('/^json-/', $o)) {
+ continue;
+ }
+ if (!file_exists($v)) {
+ die("File does not exist : OPTION --{$o} = {$v} \n");
+ }
+ }
}
@@
-99,6
+107,8
@@
class Pman_Xtuple_UpdateDatabase extends Pman
DB_DataObject::factory('accnt')->importFromArray($this, $accounts);
+
+
die("DONE! \n");
}
}