commit 5b9edabaf6ef8ebddfcbef0a647388576d5790cf
parent 94f9b2213ab1fb3db8a91d477f3a70847bbedb15
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Fri, 5 Oct 2018 11:49:51 +0200
sfeed_update: small code-style consistency fixes
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git 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.