diff --git a/script/git-repo b/script/git-repo index 88c175d..12142b7 100755 --- a/script/git-repo +++ b/script/git-repo @@ -8,10 +8,10 @@ name=$(basename $repo) dir="./tmp/$name" rm -Rf "$dir" -git clone --depth 1 --quiet "$repo" "$dir" -bundle exec bin/licensee "$dir" +bundle exec bin/licensee "$repo" if [ "$2" = "--license" ]; then + git clone --depth 1 --quiet "$repo" "$dir" license_path=$(bundle exec ./script/license-path $dir) cat $license_path | bundle exec script/diff $3 fi