names_to_numbers.rb: fix bug in non-glob operation
authorColin Patrick Mccabe <cmccabe@alumni.cmu.edu>
Sun, 7 Sep 2014 22:51:56 +0000 (15:51 -0700)
committerColin Patrick Mccabe <cmccabe@alumni.cmu.edu>
Sun, 7 Sep 2014 22:51:56 +0000 (15:51 -0700)
Signed-off-by: Colin McCabe <cmccabe@alumni.cmu.edu>

names_to_numbers.rb

index 4538976..fe03ff9 100755 (executable)
@@ -59,7 +59,7 @@ class MyOptions
       opts.num_digits > 0
     raise "must specify an extension" unless opts.extension != nil
     if (opts.glob == nil) then
-      opts.glob = "*.#{$opts.extension}"
+      opts.glob = "*.#{opts.extension}"
     end
     return opts
   end