Skip to content

Commit

Permalink
using USER vs. users.
Browse files Browse the repository at this point in the history
  • Loading branch information
muschellij2 committed May 18, 2017
1 parent cd77214 commit a9ad5c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/is_travis.R
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
#' @examples
#' is_travis()
is_travis = function(){
users = system("users", intern = TRUE)
users = Sys.getenv("USER")
users = trimws(users)
any(grepl("travis", users))
}

0 comments on commit a9ad5c6

Please sign in to comment.