bin/review-compile in review-4.0.0 vs bin/review-compile in review-4.1.0
- old
+ new
@@ -33,10 +33,10 @@
def _main
@logger = ReVIEW.logger
@mode = :files
@basedir = nil
- if /\Areview2/ =~ File.basename($PROGRAM_NAME)
+ if File.basename($PROGRAM_NAME).start_with?('review2')
@target = File.basename($PROGRAM_NAME, '.rb').sub('review2', '')
else
@target = nil
end
@check_only = false