Skip to content

Commit

Permalink
fixed an error in usage; args that contained valid args were being er…
Browse files Browse the repository at this point in the history
…roneously allowed
  • Loading branch information
teleshoes committed May 9, 2012
1 parent 7975012 commit 15ea3c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion led-controls/led-batt
Expand Up @@ -56,7 +56,7 @@ sub main(@){
} }


for my $cmd(@_){ for my $cmd(@_){
die $usage if $cmd !~ /^ o | O | g | G | \d+ | \d*\.\d+ $/x; die $usage if $cmd !~ /^(o|O|g|G|\d+|\d*\.\d+)$/;
} }


daemonize(); daemonize();
Expand Down

0 comments on commit 15ea3c1

Please sign in to comment.