mirror of
https://github.com/curl/curl.git
synced 2025-02-05 14:30:10 +08:00
remove trailing comma too, even though I don't think it does any harm
This commit is contained in:
parent
301ae1ae1b
commit
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";
|
||||
|
Loading…
Reference in New Issue
Block a user