Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed CLI for GitHub repositories

  • Loading branch information...
commit d553de1c4b4f7cdaede727a27639a1c6424896e0 1 parent 5c6eb3c
@koraktor authored
Showing with 6 additions and 1 deletion.
  1. +6 −1 bin/metior
View
7 bin/metior
@@ -1,4 +1,9 @@
#!/usr/bin/env ruby
+#
+# This code is free software; you can redistribute it and/or modify it under
+# the terms of the new BSD License.
+#
+# Copyright (c) 2011, Sebastian Staudt
require 'metior'
require 'grit'
@@ -36,7 +41,7 @@ if vcs == :git
exit 1
end
end
-elsif vcs == :github && path !=~ /^\w\/\w$/
+elsif vcs == :github && !path.match(/^\w+\/\w+$/)
puts "Error: '#{path}' is not a valid GitHub repository."
exit 1
end
Please sign in to comment.
Something went wrong with that request. Please try again.