2018-01-27 20:03:15 +00:00
|
|
|
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')
|
|
|
|
|
2017-08-09 16:37:42 +00:00
|
|
|
file.copy('content/_index.markdown', '../README.md', overwrite = TRUE)
|
2017-10-08 14:23:40 +00:00
|
|
|
if (Sys.which('sed') != '') system("sed -i '' -e '1,6d' -e '34,38d' ../README.md")
|
2017-08-09 16:37:42 +00:00
|
|
|
cat(
|
|
|
|
'[![Screenshot](https://github.com/yihui/hugo-xmin/raw/master/images/screenshot.png)](https://xmin.yihui.name)\n',
|
|
|
|
file = '../README.md', append = TRUE
|
|
|
|
)
|