Skip to content

Commit

Permalink
Merge pull request #3275 from meetagrawal09/develop
Browse files Browse the repository at this point in the history
[Bug fix] : Fixed `gsub` issue in `write.config.SIPNET`
  • Loading branch information
infotroph authored May 17, 2024
2 parents c28158b + aa0a709 commit 0254085
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion models/sipnet/R/write.configs.SIPNET.R
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ write.config.SIPNET <- function(defaults, trait.values, settings, run.id, inputs
cpruncmd <- cpoutcmd <- rmoutdircmd <- rmrundircmd <- ""
if (!is.null(settings$host$rabbitmq)) {
#rsync cmd from remote to local host.
settings$host$rabbitmq$cpfcmd <- ifelse(is.null(settings$host$rabbitmq$cpfcmd), "", settings$host$rabbitmq$cpfcmd)
cpruncmd <- gsub("@OUTDIR@", settings$host$rundir, settings$host$rabbitmq$cpfcmd)
cpruncmd <- gsub("@OUTFOLDER@", rundir, cpruncmd)

Expand Down Expand Up @@ -630,4 +631,4 @@ remove.config.SIPNET <- function(main.outdir, settings) {
} else {
print("*** WARNING: Removal of files on remote host not yet implemented ***")
}
} # remove.config.SIPNET
} # remove.config.SIPNET

0 comments on commit 0254085

Please sign in to comment.