From 33372cee2917a23c7bd1cf696110b9de24fafc87 Mon Sep 17 00:00:00 2001 From: Yueyao Gao Date: Mon, 20 May 2024 15:44:55 -0400 Subject: [PATCH] response yes to mop prompt question --- TAG_Mop/TAG_Mop.wdl | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/TAG_Mop/TAG_Mop.wdl b/TAG_Mop/TAG_Mop.wdl index e5ca414..349f72e 100644 --- a/TAG_Mop/TAG_Mop.wdl +++ b/TAG_Mop/TAG_Mop.wdl @@ -32,6 +32,7 @@ workflow TAG_Mop{ File deleted_sys_files = rmSysfiles.sys_files_to_delete Int? num_mopped_files = mop.num_of_files_to_mop File? mopped_files = mop.mopped_files + String? total_size_to_mop = mop.total_size_to_mop } meta { @@ -115,17 +116,19 @@ workflow TAG_Mop{ # Dry run Mop fissfc mop -w ~{workspaceName} -p ~{namespace} --dry-run > mop_dry_run.txt echo Files to mop:" $(cat mop_dry_run.txt | wc -l)" - cat mop_dry_run.txt | wc -l > num_of_files_to_mop.txt + cat mop_dry_run.txt | grep "gs:" | wc -l > num_of_files_to_mop.txt + cat mop_dry_run.txt | grep Total | awk '{print $3 $4}' > total_size_to_mop.txt # Mop if [ $(cat mop_dry_run.txt | wc -l) -eq 0 ]; then echo "No files to mop" else - fissfc mop --yes -w ~{workspaceName} -p ~{namespace} + fissfc --yes mop -w ~{workspaceName} -p ~{namespace} fi >>> output{ Int num_of_files_to_mop = read_int("num_of_files_to_mop.txt") + String total_size_to_mop = read_string("total_size_to_mop.txt") File mopped_files = "mop_dry_run.txt" } runtime {