/dev/bus/0 might not exist but can be queried
This commit is contained in:
parent
066f622888
commit
62b8de1b05
|
@ -18,7 +18,7 @@ GetOptions(
|
||||||
'pretty' => \$pretty
|
'pretty' => \$pretty
|
||||||
);
|
);
|
||||||
|
|
||||||
if (not defined $dev or $dev !~ m|^/dev/\w+(/\w+)?$| or not -e $dev){
|
if (not defined $dev or $dev !~ m|^/dev/\w+(/\w+)*$|){
|
||||||
print "Invalid --device\n";
|
print "Invalid --device\n";
|
||||||
exit 1;
|
exit 1;
|
||||||
} elsif ($what !~ m/^\w+$/){
|
} elsif ($what !~ m/^\w+$/){
|
||||||
|
|
Loading…
Reference in New Issue