Fixed git ignore issue

This commit is contained in:
2022-07-04 16:42:09 +01:00
parent b51273e82d
commit 788fab8610

View File

@@ -14,7 +14,7 @@ check_pacman_dir <- function() {
} }
} }
if (file.exists(".gitignore")) { if (file.exists(".gitignore")) {
if (length(grep(".pacman/", ".gitignore")) == 0) { if (length(grep(".pacman/", readLines(".gitignore"))) == 0) {
con <- file(".gitignore", "a") con <- file(".gitignore", "a")
writeLines("\n# pacman - package management folder\n.pacman/", con) writeLines("\n# pacman - package management folder\n.pacman/", con)
close(con) close(con)