diff --git a/rpgscript.rb b/rpgscript.rb index 6e2ec76..8005439 100755 --- a/rpgscript.rb +++ b/rpgscript.rb @@ -43,7 +43,7 @@ list_path = File.join(scripts_dir, '_scripts.txt') if extract # Make sure the script directory exists - Dir.mkdir(scripts_dir) unless Dir.exists? scripts_dir + Dir.mkdir(scripts_dir) unless Dir.exist? scripts_dir # Keep track of names of scripts extracted so we can warn about duplicates names = Hash.new(0)