close #20: only create README.md for myself
This commit is contained in:
parent
d0209f7604
commit
6d12cfc380
@ -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)
|
file.copy('content/_index.markdown', '../README.md', overwrite = TRUE)
|
||||||
if (Sys.which('sed') != '') system("sed -i '' -e '1,6d' -e '34,38d' ../README.md")
|
if (Sys.which('sed') != '') system("sed -i '' -e '1,6d' -e '34,38d' ../README.md")
|
||||||
cat(
|
cat(
|
||||||
|
Loading…
Reference in New Issue
Block a user