From ba87759d7d44a9e4c4150bb3b3bf4fdd509113cb Mon Sep 17 00:00:00 2001 From: mcguirepr89 Date: Thu, 17 Mar 2022 11:02:24 -0400 Subject: [PATCH] put confidence in quotes to test --- scripts/extract_new_birdsounds.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/extract_new_birdsounds.sh b/scripts/extract_new_birdsounds.sh index 9b62f07..8b7abc8 100755 --- a/scripts/extract_new_birdsounds.sh +++ b/scripts/extract_new_birdsounds.sh @@ -66,9 +66,9 @@ for h in "${SCAN_DIRS[@]}";do #CONFIDENCE_SCORE="${CONFIDENCE:0:2}%" locale_decimal=$(locale decimal_point) if [[ $locale_decimal == "." ]]; then - CONFIDENCE_SCORE="$(printf %.0f "$(echo "scale=2; ${CONFIDENCE} * 100" | bc)")" + CONFIDENCE_SCORE="$(printf %.0f "$(echo "scale=2; ${CONFIDENCE} * 100" | bc)")" else - CONFIDENCE_SCORE="$(printf %.0f "$(echo "scale=2; ${CONFIDENCE//./,} * 100" | bc)")" + CONFIDENCE_SCORE="$(printf %.0f "$(echo "scale=2; "${CONFIDENCE//./,}" * 100" | bc)")" fi NEWFILE="${COMMON_NAME// /_}-${CONFIDENCE_SCORE}-${OLDFILE//.wav/.${AUDIOFMT}}" echo "NEWFILE=$NEWFILE"