Skip to content

Commit

Permalink
rename .ps1 to .txt to bypass the security scan on certain platforms …
Browse files Browse the repository at this point in the history
…(sigh...)
  • Loading branch information
yihui committed Oct 2, 2024
1 parent a35bf69 commit 021b3bd
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Package: xfun
Type: Package
Title: Supporting Functions for Packages Maintained by 'Yihui Xie'
Version: 0.47.8
Version: 0.47.9
Authors@R: c(
person("Yihui", "Xie", role = c("aut", "cre", "cph"), email = "[email protected]", comment = c(ORCID = "0000-0003-0645-5666")),
person("Wush", "Wu", role = "ctb"),
Expand Down
2 changes: 1 addition & 1 deletion R/base64.R
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ mime_type = function(x, use_mime = loadable('mime'), empty = 'text/plain') {
if (Sys.which(cmd) == '') {
if (!is_windows()) stop("The 'file' command is not found")
cmd = 'powershell'
arg = c('-ExecutionPolicy', 'Bypass', '-File', shQuote(pkg_file('scripts', 'mime-type.ps1')))
arg = c('-ExecutionPolicy', 'Bypass', '-File', shQuote(pkg_file('scripts', 'mime-type.txt')))
}
system2(cmd, c(arg, shQuote(x)), stdout = TRUE)[1]
}
Expand Down
File renamed without changes.

0 comments on commit 021b3bd

Please sign in to comment.