diff options
author | Yihui Xie | 2018-01-27 14:03:15 -0600 |
---|---|---|
committer | Yihui Xie | 2018-01-27 14:03:15 -0600 |
commit | 6d12cfc380bb3af357f45e4cec5ad8bd9f8e36ac (patch) | |
tree | 0d1854596e65af23458fc5ce3896a7f24391282d | |
parent | d0209f76044d51582923daad96827777dbd0f002 (diff) | |
download | hugo-xmin-6d12cfc380bb3af357f45e4cec5ad8bd9f8e36ac.tar.lz hugo-xmin-6d12cfc380bb3af357f45e4cec5ad8bd9f8e36ac.tar.zst hugo-xmin-6d12cfc380bb3af357f45e4cec5ad8bd9f8e36ac.zip |
close #20: only create README.md for myself
-rw-r--r-- | exampleSite/R/build.R | 6 |
1 files changed, 6 insertions, 0 deletions
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( |