From 7dd510ec574bc89be9ea7b4e6a9c4276c9763643 Mon Sep 17 00:00:00 2001 From: kx1t <15090643+kx1t@users.noreply.github.com> Date: Tue, 16 Apr 2024 11:09:54 +0200 Subject: [PATCH] Fix minor issues --- rootfs/usr/share/planefence/planefence.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rootfs/usr/share/planefence/planefence.sh b/rootfs/usr/share/planefence/planefence.sh index 483ea35..a11cb7a 100755 --- a/rootfs/usr/share/planefence/planefence.sh +++ b/rootfs/usr/share/planefence/planefence.sh @@ -379,7 +379,7 @@ EOF curl -sL "$REMOTENOISE/$mp3f" > "$OUTFILEDIR/$mp3f" fi # shellcheck disable=SC2012 - if [[ ! -s "$OUTFILEDIR/$mp3f" ]] || (( $(ls -s1 "$OUTFILEDIR/$mp3f" | awk '{print $1}') < 10 )); then + if [[ ! -s "$OUTFILEDIR/$mp3f" ]] || (( $(ls -s1 "$OUTFILEDIR/$mp3f" | awk '{print $1}') < 4 )); then # we don't have $mp3f (or it's an empty file) and we can't get it; so let's erase it in case it's an empty file: rm -f "$OUTFILEDIR/$mp3f" mp3f="" @@ -449,7 +449,7 @@ EOF if [[ "${NEWVALUES[7]}" != "" ]]; then if [[ -n "$mp3f" ]] && [[ -f "$OUTFILEDIR/$mp3f" ]]; then - printf "