lib/sprinkle/verifiers/directory.rb in lachlan-sprinkle-0.0.4 vs lib/sprinkle/verifiers/directory.rb in lachlan-sprinkle-0.0.5

- old
+ new

@@ -10,10 +10,10 @@ # Tests that the directory <tt>dir</tt> exists. def has_directory(dir) if RUBY_PLATFORM =~ /win32/ dir += "\\" unless dir[-1,1] == "\\" command = "if exist \"#{dir}\" (exit 0) else (exit 1)" - command += ' > NUL 2>&1' unless logger.debug? + command << ' > NUL 2>&1' unless logger.debug? else command = "test -d #{dir}" end @commands << command end \ No newline at end of file