Commit 0ea2da1

mo khan <mo.khan@gmail.com>
2019-10-27 21:02:21
Add error handling to ./bin/add script
1 parent 4cd341f
Changed files (1)
bin
bin/add
@@ -2,6 +2,11 @@
 # frozen_string_literal: true
 require 'uri'
 
+if ARGV.empty?
+  puts "Please provide path to git repo."
+  exit 1
+end
+
 uri = URI.parse(ARGV[0])
 destination = "pack/plugins/start/#{uri.path.split('/')[-1]}"