R/gitUpdatePBPathJW.R

CommitMessage <-
    paste("Automatically updated via cron at: ", Sys.time(), sep = "")

wd            <- "~/JournalWatchPBPath/"

setorigin     <-
    "git remote set-url origin git@github.com:sbalci/JournalWatchPBPath.git \n"

gitCommand    <-
    paste(
        "cd ",
        wd,
        " \n git add . \n git commit --message '",
        CommitMessage,
        "' \n",
        setorigin,
        "git push origin master \n",
        sep = ""
    )

system(
    command = paste(gitCommand, "\n") ,
    intern = TRUE,
    wait = TRUE
)

Sys.sleep(5)
sbalci/AutoJournalWatch documentation built on Aug. 13, 2020, 4:18 p.m.