We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2606f7b commit b95701dCopy full SHA for b95701d
core/Command/User/AuthTokens/Add.php
@@ -62,9 +62,9 @@ protected function execute(InputInterface $input, OutputInterface $output): int
62
}
63
64
if ($input->getOption('password-from-env')) {
65
- $password = getenv('NC_PASS') ?? getenv('OC_PASS');
+ $password = getenv('NC_PASS') ?: getenv('OC_PASS');
66
if (!$password) {
67
- $output->writeln('<error>--password-from-env given, but NC_PASS is empty!</error>');
+ $output->writeln('<error>--password-from-env given, but NC_PASS/OC_PASS is empty!</error>');
68
return 1;
69
70
} elseif ($input->isInteractive()) {
0 commit comments