diff --git a/lib/motion/project/config.rb b/lib/motion/project/config.rb index 581e314f..c6b4d53d 100644 --- a/lib/motion/project/config.rb +++ b/lib/motion/project/config.rb @@ -135,7 +135,7 @@ def validate end def supported_versions - @supported_versions ||= Dir.glob(File.join(motiondir, 'data', template.to_s, '*')).select{|path| File.directory?(path)}.map do |path| + @supported_versions ||= Dir.glob(File.join(motiondir, 'data', template.to_s, '[1-9]*')).select{|path| File.directory?(path)}.map do |path| File.basename path end end