remove trailing comma too, even though I don't think it does any harm
This commit is contained in:
Родитель
301ae1ae1b
Коммит
6893fcaa9b
|
@ -374,7 +374,7 @@ sub startnew {
|
|||
sub checkcmd {
|
||||
my ($cmd)=@_;
|
||||
my @paths=(split(":", $ENV{'PATH'}), "/usr/sbin", "/usr/local/sbin",
|
||||
"/sbin", "/usr/bin", "/usr/local/bin", );
|
||||
"/sbin", "/usr/bin", "/usr/local/bin" );
|
||||
for(@paths) {
|
||||
if( -x "$_/$cmd") {
|
||||
return "$_/$cmd";
|
||||
|
|
Загрузка…
Ссылка в новой задаче