mirror of
https://github.com/deployphp/deployer.git
synced 2025-02-23 00:32:25 +01:00
Fix style
This commit is contained in:
parent
f344ca1313
commit
0e99b659ba
10
bin/dep
10
bin/dep
@ -31,14 +31,14 @@ if (isset($options['f'])) {
|
||||
$userSpecifiedFile = $options['file'];
|
||||
}
|
||||
|
||||
if(empty($userSpecifiedFile)) {
|
||||
if (empty($userSpecifiedFile)) {
|
||||
$fOptIndex = array_search('-f', $argv);
|
||||
$fileOptIndex = array_search('--file', $argv);
|
||||
|
||||
if($fOptIndex) {
|
||||
$userSpecifiedFile = $argv[$fOptIndex+1];
|
||||
} elseif ($fileOptIndex) {
|
||||
$userSpecifiedFile = $argv[$fileOptIndex+1];
|
||||
if ($fOptIndex && $fOptIndex + 1 < count($argv)) {
|
||||
$userSpecifiedFile = $argv[$fOptIndex + 1];
|
||||
} elseif ($fileOptIndex && $fileOptIndex + 1 < count($argv)) {
|
||||
$userSpecifiedFile = $argv[$fileOptIndex + 1];
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user