瀏覽代碼

adding executable script occ (ownCloud console)

tags/v6.0.0alpha2
Thomas Müller 11 年之前
父節點
當前提交
2871d11b5c
共有 2 個檔案被更改,包括 13 行新增2 行删除
  1. 2
    2
      console.php
  2. 11
    0
      occ

+ 2
- 2
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);
}


+ 11
- 0
occ 查看文件

@@ -0,0 +1,11 @@
#!/usr/bin/php
<?php
/**
* Copyright (c) 2013 Thomas Müller <thomas.mueller@tmit.eu>
* 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';

Loading…
取消
儲存