aboutsummaryrefslogtreecommitdiff
path: root/cli/_cli.php
diff options
context:
space:
mode:
Diffstat (limited to 'cli/_cli.php')
-rw-r--r--cli/_cli.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/cli/_cli.php b/cli/_cli.php
index cb6d8ec32..d81d83d66 100644
--- a/cli/_cli.php
+++ b/cli/_cli.php
@@ -37,3 +37,8 @@ function cliInitUser($username) {
return $username;
}
+
+function done($ok) {
+ echo 'Result: ', ($ok ? 'success' : 'fail'), ".\n";
+ exit($ok ? 0 : 1);
+}