summaryrefslogtreecommitdiff
path: root/it.class
diff options
context:
space:
mode:
Diffstat (limited to 'it.class')
-rw-r--r--it.class6
1 files changed, 3 insertions, 3 deletions
diff --git a/it.class b/it.class
index 0efe3b4..13e3aa0 100644
--- a/it.class
+++ b/it.class
@@ -674,12 +674,12 @@ static function filter_keys($array, $keys, $p = array())
* {0} .. {n} quotes and inserts positional arguments
* {-opts} array of opts => {value,true,false,null}: it::exec('ls {-opts}', ['-opts' => ["-l" => true]]);
* @param $cmd Format string with {keywords} a la ET()
- * @param $args varargs, contains key => val arrays for filling in cmd line. val=null expands to nothing
+ * @param $args varargs, contains key => val arrays or positionals for filling in cmd line. val=null expands to nothing
* @return output of command. shell errors not detectable, consider it::system or see /www/server/log/error_log
*/
static function exec($cmd, ...$args)
{
- $cmd = it::shell_command($cmd, ...$args);
+ $cmd = it::shell_command($cmd, ...$args); # NOPHPLINT
$before = gettimeofday(true);
$result = EDC('noexec') ? "" : (string)shell_exec("set +o posix\n" . $cmd);
@@ -697,7 +697,7 @@ static function exec($cmd, ...$args)
*/
static function system($cmd, ...$args)
{
- $cmd = it::shell_command($cmd, ...$args);
+ $cmd = it::shell_command($cmd, ...$args); # NOPHPLINT
$before = gettimeofday(true);
if (!EDC('noexec'))