From: Yihui Xie Date: Sat, 27 Jan 2018 20:03:15 +0000 (-0600) Subject: close #20: only create README.md for myself X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=6d12cfc380bb3af357f45e4cec5ad8bd9f8e36ac;p=brevno-suite%2Fthemes%2Fxmin close #20: only create README.md for myself --- diff --git a/exampleSite/R/build.R b/exampleSite/R/build.R index 78c3e56..2fbce83 100644 --- a/exampleSite/R/build.R +++ b/exampleSite/R/build.R @@ -1,3 +1,9 @@ +if (Sys.getenv('USER') != 'yihui' || Sys.which('git') == '' || + !grepl( + 'git@github.com:yihui/hugo-xmin.git', + system2('git', c('remote', '-v'), stdout = TRUE) + )) q('no') + file.copy('content/_index.markdown', '../README.md', overwrite = TRUE) if (Sys.which('sed') != '') system("sed -i '' -e '1,6d' -e '34,38d' ../README.md") cat(