Permalink
Browse files

Check for PatentSafe path before running

  • Loading branch information...
1 parent d46c3a0 commit 5f1f8e42b9c6a4527afa9c09213c7e0a7524d48c @elskwid elskwid committed Apr 11, 2012
Showing with 7 additions and 0 deletions.
  1. +7 −0 pscheck.rb
View
@@ -277,6 +277,13 @@ def arguments_valid?
# Setup the arguments
def process_arguments
@patentsafe_dir = ARGV[0] if ARGV[0]
+
+ # path must exist
+ unless File.exists?(@patentsafe_dir)
+ LOG.error "PatentSafe path #{@patentsafe_dir} does not exist!"
+ exit
+ end
+
end
def output_help

0 comments on commit 5f1f8e4

Please sign in to comment.