diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2013-08-05 14:03:11 +0200 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2013-08-05 14:03:11 +0200 |
commit | 2871d11b5c1148909787d9bca732dfcd1fcbfc5d (patch) | |
tree | f3eae7569280ff003b28d186d24e9fc80f1eb75e /console.php | |
parent | bf1a9dfae3c7203dd018153e2ab5d779d835e06c (diff) | |
download | nextcloud-server-2871d11b5c1148909787d9bca732dfcd1fcbfc5d.tar.gz nextcloud-server-2871d11b5c1148909787d9bca732dfcd1fcbfc5d.zip |
adding executable script occ (ownCloud console)
Diffstat (limited to 'console.php')
-rw-r--r-- | console.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/console.php b/console.php index 538837a04b4..4aec5bdc24f 100644 --- a/console.php +++ b/console.php @@ -20,9 +20,9 @@ if (!OC::$CLI) { exit(0); } -if ($argc < 1) { +if ($argc <= 1) { echo "Usage:" . PHP_EOL; - echo " php console.php <command>" . PHP_EOL; + echo " " . basename($argv[0]) . " <command>" . PHP_EOL; exit(0); } |