Skip to content

Commit 20fad75

Browse files
committed
chmod +x for whitebox_runner; closes #102
- and fix `wbt_runner_path(shell_quote=FALSE)`
1 parent 060b01a commit 20fad75

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

R/wbt.R

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -240,6 +240,7 @@ wbt_runner_path <- function(shell_quote = TRUE) {
240240
if (shell_quote) {
241241
return(shQuote(res))
242242
}
243+
res
243244
}
244245

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

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

0 commit comments

Comments
 (0)