From 868bd564a52ba6124a6df47dc70a34e2103ae2f6 Mon Sep 17 00:00:00 2001 From: John Bintz Date: Wed, 15 Sep 2010 18:31:29 -0400 Subject: [PATCH] warning for missing dir name --- bin/apache-configurator | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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