From d4a6bacec02989e093d444dd3652bdd4a6d3e131 Mon Sep 17 00:00:00 2001 From: Miles Alan Date: Sat, 27 Jun 2020 20:11:15 -0500 Subject: [PATCH] sxmo_record.sh Fix call to getdur in filename generation --- scripts/appscripts/sxmo_record.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/appscripts/sxmo_record.sh b/scripts/appscripts/sxmo_record.sh index e11478d..031d313 100755 --- a/scripts/appscripts/sxmo_record.sh +++ b/scripts/appscripts/sxmo_record.sh @@ -19,7 +19,7 @@ record() { TEMPFILE="$(mktemp --suffix=.wav)" NOW="$(date '+%y%m%d_%H%M%S')" st -e arecord -D plug:"$DEVICE" -vv -f cd -c "$CHANNELS" "$TEMPFILE" - FILENAME="${NOW}_${PRETTYNAME}_$(getdur).wav" + FILENAME="${NOW}_${PRETTYNAME}_$(getdur "$TEMPFILE").wav" FILE="${SXMO_RECDIR}/${FILENAME}" mv "$TEMPFILE" "$FILE" echo "$FILE"