From 5b9edabaf6ef8ebddfcbef0a647388576d5790cf Mon Sep 17 00:00:00 2001 From: Hiltjo Posthuma Date: Fri, 5 Oct 2018 11:49:51 +0200 Subject: sfeed_update: small code-style consistency fixes --- sfeed_update | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sfeed_update') diff --git a/sfeed_update b/sfeed_update index 798b69b..e924784 100755 --- a/sfeed_update +++ b/sfeed_update @@ -77,7 +77,7 @@ fetchfeed() { feed() { # wait until ${maxjobs} are finished: throughput using this logic is # non-optimal, but it is simple and portable. - test $((curjobs % maxjobs)) -eq 0 && wait + [ $((curjobs % maxjobs)) -eq 0 ] && wait curjobs=$((curjobs + 1)) (name="$1" @@ -89,7 +89,7 @@ feed() { encoding="$4" sfeedfile="${sfeedpath}/${filename}" - if [ ! "${encoding}" = "" ]; then + if [ "${encoding}" != "" ]; then fetchfeed "${name}" "${feedurl}" "${sfeedfile}" | \ convertencoding "${encoding}" "utf-8" else # detect encoding. -- cgit v1.2.3