diff --git a/bin/apache-configurator b/bin/apache-configurator index 6905871..22e8def 100755 --- a/bin/apache-configurator +++ b/bin/apache-configurator @@ -2,7 +2,12 @@ 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." exit 1 end