From 91e7f48d581d82e212b1a743d720c87d84196774 Mon Sep 17 00:00:00 2001 From: Seth Grover Date: Thu, 2 May 2024 15:27:56 -0600 Subject: [PATCH] fix bug in prune_files.sh where we shouldn't have had a % at the end of the string, but we should handle it even if we do --- shared/bin/prune_files.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shared/bin/prune_files.sh b/shared/bin/prune_files.sh index 0e94ee305..29ad8d474 100755 --- a/shared/bin/prune_files.sh +++ b/shared/bin/prune_files.sh @@ -25,7 +25,7 @@ while getopts i:m:p:rt:v opts; do m) MAXSIZE_GB=${OPTARG} ;; p) PRUNE_PATH=${OPTARG} ;; r) DEPTH=999 ;; - t) THRESHOLD_PCT=${OPTARG} ;; + t) THRESHOLD_PCT="${OPTARG//%}" ;; v) VERBOSE=1 ;; esac done