summaryrefslogtreecommitdiff
path: root/sfeed_update
diff options
context:
space:
mode:
authorHiltjo Posthuma <hiltjo@codemadness.org>2018-10-05 11:49:51 +0200
committerHiltjo Posthuma <hiltjo@codemadness.org>2018-10-05 11:49:51 +0200
commit5b9edabaf6ef8ebddfcbef0a647388576d5790cf (patch)
treef4e7ba38fc763e02001bc5bd137e32dc6dca3e5e /sfeed_update
parent94f9b2213ab1fb3db8a91d477f3a70847bbedb15 (diff)
sfeed_update: small code-style consistency fixes
Diffstat (limited to 'sfeed_update')
-rwxr-xr-xsfeed_update4
1 files changed, 2 insertions, 2 deletions
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.