Skip to content

Commit

Permalink
delete double searchline
Browse files Browse the repository at this point in the history
  • Loading branch information
gisma committed May 2, 2024
1 parent 271c789 commit a941d62
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/otbControls.R
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ searchOTBW <- function(DL = "default",
DL = shortPathName(DL)
raw_OTB <- try(system(paste0("cmd.exe /c WHERE /R ",DL, " ","otbcli.bat"),intern=TRUE))

raw_OTB <- try(system(paste0("cmd.exe"," /c dir /B /S ",DL,"\\","otbcli.bat"),intern=TRUE))
#raw_OTB <- try(system(paste0("cmd.exe"," /c dir /B /S ",DL,"\\","otbcli.bat"),intern=TRUE))
if (identical(raw_OTB, character(0))) raw_OTB <- "File not found"
if (grepl(raw_OTB[1],pattern = "File not found") |
grepl(raw_OTB[1],pattern = "Datei nicht gefunden") |
Expand Down

0 comments on commit a941d62

Please sign in to comment.