Skip to content

Commit

Permalink
evaluate optional input length in bash
Browse files Browse the repository at this point in the history
  • Loading branch information
tomkinsc committed Oct 20, 2023
1 parent c7c4112 commit ce3c206
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pipes/WDL/tasks/tasks_terra.wdl
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,11 @@ task get_gcloud_env_info {
command {
set -ex

~{additional_command_to_run} ~{if additional_command_to_run then "| tee -a additional_command_stdout.log" else ""}
touch additional_command_stdout.log

if [ -n "~{default='' additional_command_to_run}" ]; then
~{default='echo ""' additional_command_to_run} | tee -a additional_command_stdout.log
fi

env | tee -a env_info.log

Expand Down

0 comments on commit ce3c206

Please sign in to comment.