Skip to content

Commit

Permalink
[minor] improve phar detection
Browse files Browse the repository at this point in the history
  • Loading branch information
kbond committed Sep 20, 2021
1 parent 80720ae commit 2e66aa0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/phpmyadmin
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ $application->addCommands([
new InitCommand(),
]);

if (0 === strpos(__DIR__, 'phar://')) {
if (\Phar::running()) {
// only register self update if using as phar
$application->add(new SelfUpdateCommand());
}
Expand Down

0 comments on commit 2e66aa0

Please sign in to comment.