Skip to content

Commit

Permalink
Merge pull request #110 from opengeos/chmod-plugins
Browse files Browse the repository at this point in the history
chmod +x for `whitebox_runner`
  • Loading branch information
brownag authored Apr 29, 2023
2 parents 060b01a + 20fad75 commit 4f87a05
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions R/wbt.R
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,7 @@ wbt_runner_path <- function(shell_quote = TRUE) {
if (shell_quote) {
return(shQuote(res))
}
res
}

#' @title Launch 'WhiteboxTools Runner' GUI
Expand Down Expand Up @@ -609,6 +610,7 @@ wbt_install <- function(pkg_dir = wbt_data_dir(), platform = NULL, force = FALSE
# subfolder WBT/whitebox_tools
exe_path_out <- file.path(pkg_dir, "WBT", basename(exe_path))
Sys.chmod(exe_path_out, '755')
Sys.chmod(file.path(dirname(exe_path_out), basename(wbt_runner_path(shell_quote = FALSE))), '755')

# if (os == "Windows") {
# utils::unzip(exe_zip, exdir = pkg_dir)
Expand Down

0 comments on commit 4f87a05

Please sign in to comment.