use gh if available when cloning site

This commit is contained in:
vilmibm 2020-05-18 14:05:50 -05:00
parent 296062b869
commit da95cbd1bf

View file

@ -23,7 +23,7 @@ test:
.PHONY: test
site:
git clone https://github.com/github/cli.github.com.git "$@"
(which gh 2>/dev/null && gh repo clone github/cli.github.com "$@") || git clone https://github.com/github/cli.github.com.git "$@"
site-docs: site
git -C site pull