summaryrefslogtreecommitdiff
path: root/sfeed_markread
diff options
context:
space:
mode:
authorHiltjo Posthuma <hiltjo@codemadness.org>2022-03-23 19:38:30 +0100
committerHiltjo Posthuma <hiltjo@codemadness.org>2022-03-23 19:38:30 +0100
commit74cf6a026e13a6e275d37bc17014908a76b41042 (patch)
treec8770ecca0dadd466b38e2dae8c70ac537079380 /sfeed_markread
parent70426c5b55dd9d1f96860644d868fb3399e5a4df (diff)
shellscripts: use [ for test consistently
Diffstat (limited to 'sfeed_markread')
-rwxr-xr-xsfeed_markread4
1 files changed, 2 insertions, 2 deletions
diff --git a/sfeed_markread b/sfeed_markread
index a40e572..4c509f3 100755
--- 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 }