Permalink
Browse files

fixed an error in usage; args that contained valid args were being er…

…roneously allowed
  • Loading branch information...
1 parent 7975012 commit 15ea3c185d2ab6ee6a154b67e0282294aff7c9f6 @teleshoes committed May 9, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 led-controls/led-batt
@@ -56,7 +56,7 @@ sub main(@){
}
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();

0 comments on commit 15ea3c1

Please sign in to comment.