warning for missing dir name

This commit is contained in:
John Bintz 2010-09-15 18:31:29 -04:00
parent b7ec3bc7c5
commit 868bd564a5

View File

@ -2,7 +2,12 @@
require 'fileutils' require 'fileutils'
if File.directory? ARGV[0] if !ARGV[0]
puts "Directory name required."
exit 1
end
if File.directory?(ARGV[0])
puts "You can't overwrite an existing directory." puts "You can't overwrite an existing directory."
exit 1 exit 1
end end