diff options
| -rwxr-xr-x | bin/willora | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/bin/willora b/bin/willora index 9652aa7..a97f2b8 100755 --- a/bin/willora +++ b/bin/willora @@ -64,6 +64,11 @@ class Willora return 1 end + if File.exists?(@opts[:destination]) + @errormsg = "Destination directory already exists: #{@opts[:destination].inspect}" + return 1 + end + # Fill in some gaps before we continue. if !@opts[:nickname] @errormsg = "New project requires a nickname" |
