add tiny script to check git repos remotely

This commit is contained in:
Ben Balter 2015-08-27 16:50:57 -04:00
parent a141a488d6
commit 919a2ad012
1 changed files with 11 additions and 0 deletions

11
script/git-repo Executable file
View File

@ -0,0 +1,11 @@
#!/bin/sh
# Runs the licensee command against a remote git repo
repo=$1
name=$(basename $repo)
dir="./tmp/$name"
git clone -q "$repo" "$dir"
bundle exec licensee "$dir"
rm -Rf "$dir"