Changeset View
Changeset View
Standalone View
Standalone View
scripts/ssh/ssh-exec.php
| Show First 20 Lines • Show All 239 Lines • ▼ Show 20 Lines | try { | ||||
| $parsed_args = new PhutilArgumentParser($parseable_argv); | $parsed_args = new PhutilArgumentParser($parseable_argv); | ||||
| if (empty($workflows[$command])) { | if (empty($workflows[$command])) { | ||||
| throw new Exception(pht('Invalid command.')); | throw new Exception(pht('Invalid command.')); | ||||
| } | } | ||||
| $workflow = $parsed_args->parseWorkflows($workflows); | $workflow = $parsed_args->parseWorkflows($workflows); | ||||
| $workflow->setUser($user); | $workflow->setSSHUser($user); | ||||
| $workflow->setOriginalArguments($original_argv); | $workflow->setOriginalArguments($original_argv); | ||||
| $workflow->setIsClusterRequest($is_cluster_request); | $workflow->setIsClusterRequest($is_cluster_request); | ||||
| $sock_stdin = fopen('php://stdin', 'r'); | $sock_stdin = fopen('php://stdin', 'r'); | ||||
| if (!$sock_stdin) { | if (!$sock_stdin) { | ||||
| throw new Exception(pht('Unable to open stdin.')); | throw new Exception(pht('Unable to open stdin.')); | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 50 Lines • Show Last 20 Lines | |||||