Skip to content

Commit

Permalink
tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
markheckmann committed Oct 4, 2024
1 parent 97611a5 commit 196ca84
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 2 additions & 2 deletions NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

## Issues

- Stop if PowerShell (PS) execution strategy does not allow running scripts and advise user.
PS scripts are required for certain actions on Windows (#2).
- Fail with informative error message if PowerShell (PS) execution strategy does not allow
running PS scripts. PS scripts are required for certain actions on Windows (#2).

# doconv 0.3.2

Expand Down
1 change: 0 additions & 1 deletion R/utils.R
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,6 @@ ps_execution_policy <- function() {
# check if policy allows PS script execution. If not advise user.
stop_on_wrong_ps_exec_policy <- function() {
policy <- ps_execution_policy()
ps_exec_policies_ok <- c("RemoteSigned", "Bypass", "Unrestricted")
stop("Conversion failed.\n",
"Your PowerShell execution policy '", policy, "' prevents script execution.\n",
"Run one of the following commands in PS as admin to enable script execution: \n",
Expand Down

0 comments on commit 196ca84

Please sign in to comment.