]> Sergey Matveev's repositories - feeder.git/commitdiff
Excess assignments
authorSergey Matveev <stargrave@stargrave.org>
Fri, 18 Feb 2022 13:54:27 +0000 (16:54 +0300)
committerSergey Matveev <stargrave@stargrave.org>
Fri, 18 Feb 2022 13:54:27 +0000 (16:54 +0300)
cmd/download.sh
cmd/muttrc-gen.sh
cmd/parse.sh

index b3a42a6888742b806b21d667fefa6d90c24c4bd0..a70c6d7039dd0ae1ceeeb450c75b48dd00289f0c 100755 (executable)
@@ -3,8 +3,8 @@
 PROXY="--proxy http://localhost:8080/"
 cd "$1"
 read url < url
-[ -s etag ] && etag_compare="--etag-compare etag" || etag_compare=""
-[ -r out ] && time_cond="--time-cond out" || time_cond=""
+[ -s etag ] && etag_compare="--etag-compare etag" || :
+[ -r out ] && time_cond="--time-cond out" || :
 [ -z "$FEEDER_CURL_VERBOSE" ] && silent="--silent" || silent="--verbose"
 curl --fail \
     --user-agent "go.stargrave.org-feeder/0.1.0" \
index 81738e60eecd463329bb88ca32e91e4d03020590..6eac0e840100a0dd58e98cf0907bc7cca4073763 100755 (executable)
@@ -32,6 +32,6 @@ for f in feeds/* ; do
         continue
     }
     read title < $f/title
-    [ -n "$title" ] && label="-label \"$title\"" || label=""
+    [ -n "$title" ] && label="-label \"$title\"" || :
     echo mailboxes $label $f
 done
index ca3bf2a6a4a51a0ecc20797078df6fd9de324720..9ba9d7c0c3ddb90a7c768191800a7768333d8043 100755 (executable)
@@ -2,8 +2,8 @@
 
 cmds="$(dirname "$(realpath "$0")")"
 cd "$1"
-[ -s parse.hash ] && hash_our=`cat parse.hash` || hash_our=""
-[ -s download.hash ] && hash_their=`cat download.hash` || hash_their=""
+[ -s parse.hash ] && hash_our=`cat parse.hash` || :
+[ -s download.hash ] && hash_their=`cat download.hash` || :
 [ "$hash_our" != "$hash_their" ] || exit 0
 zstd -d < feed.zst | $cmds/feed2mdir/feed2mdir . > title.tmp
 mv title.tmp title