Merge pull request #26 from remicollet/issue-fix-clean

Cleanup socket files
This commit is contained in:
Jakub Zelenka 2021-02-17 20:51:24 +00:00 committed by GitHub
commit ccb1e4730e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -29,7 +29,7 @@ class gnupgt {
return; return;
} }
foreach (glob($homeDir . '/*') as $filename) { foreach (glob($homeDir . '/*') as $filename) {
if (is_file($filename)) { if (!is_dir($filename)) {
unlink($filename); unlink($filename);
} }
} }