From: Thomas Müller Date: Mon, 5 Aug 2013 12:03:11 +0000 (+0200) Subject: adding executable script occ (ownCloud console) X-Git-Tag: v5.0.10~13 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=797c2a9c7672f1d15b0da10cb59fbeacdef0eb7f;p=nextcloud-server.git adding executable script occ (ownCloud console) --- 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 " . PHP_EOL; + echo " " . basename($argv[0]) . " " . PHP_EOL; exit(0); } diff --git a/occ b/occ new file mode 100755 index 00000000000..e2b71fe4abc --- /dev/null +++ b/occ @@ -0,0 +1,11 @@ +#!/usr/bin/php + + * This file is licensed under the Affero General Public License version 3 or + * later. + * See the COPYING-README file. + */ + +//$argv = $_SERVER['argv']; +require_once __DIR__ . '/console.php';