Skip to content

Commit

Permalink
close yihui#20: only create README.md for myself
Browse files Browse the repository at this point in the history
  • Loading branch information
yihui committed Jan 27, 2018
1 parent d0209f7 commit 6d12cfc
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions exampleSite/R/build.R
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
if (Sys.getenv('USER') != 'yihui' || Sys.which('git') == '' ||
!grepl(
'[email protected]: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(
Expand Down

0 comments on commit 6d12cfc

Please sign in to comment.