sfeed

simple feed reader - forked from git.codemadness.org/sfeed
git clone git://src.gearsix.net/sfeed
Log | Files | Refs | Atom | README | LICENSE

commit 74cf6a026e13a6e275d37bc17014908a76b41042
parent 70426c5b55dd9d1f96860644d868fb3399e5a4df
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date:   Wed, 23 Mar 2022 19:38:30 +0100

shellscripts: use [ for test consistently

Diffstat:
Msfeed_markread | 4++--
Msfeed_update | 2+-
2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/sfeed_markread b/sfeed_markread @@ -9,7 +9,7 @@ usage() { } urlfile="${2:-${SFEED_URL_FILE}}" -if test -z "${urlfile}"; then +if [ -z "${urlfile}" ]; then usage fi @@ -20,7 +20,7 @@ read) unread) tmp=$(mktemp) trap "rm -f ${tmp}" EXIT - test -f "${urlfile}" || touch "${urlfile}" 2>/dev/null + [ -f "${urlfile}" ] || touch "${urlfile}" 2>/dev/null LC_ALL=C awk -F '\t' ' { FILENR += (FNR == 1) } FILENR == 1 { urls[$0] = 1 } diff --git a/sfeed_update b/sfeed_update @@ -213,7 +213,7 @@ main() { # wait till all feeds are fetched (concurrently). [ ${signo} -eq 0 ] && wait # check error exit status indicator for parallel jobs. - test -f "${sfeedtmpdir}/ok" + [ -f "${sfeedtmpdir}/ok" ] status=$? # cleanup temporary files etc. cleanup