code cleanup

This commit is contained in:
Harald Hope 2023-11-28 19:43:06 -08:00
parent 5d39c28270
commit 7d3e5fe61b

4
pinxi
View file

@ -30859,11 +30859,11 @@ sub get_display_manager {
$pattern .= '/var/run/rc.d'; $pattern .= '/var/run/rc.d';
} }
if ($pattern){ if ($pattern){
$pattern = '{' . $pattern . '/*}'; $pattern = '{' . $pattern . '}/*';
# for dm.pid type file or dm directory names, like greetd-684.sock # for dm.pid type file or dm directory names, like greetd-684.sock
@glob = globber($pattern); @glob = globber($pattern);
} }
# print Data::Dumper::Dumper \@glob; print Data::Dumper::Dumper \@glob;
# used to test for .pid/lock type file or directory, now just see if the # used to test for .pid/lock type file or directory, now just see if the
# search name exists in run and call it good since test would always be true # search name exists in run and call it good since test would always be true
# if directory existed previously anyway. # if directory existed previously anyway.