1
0
Fork 0
mirror of https://git.sr.ht/~seirdy/seirdy.one synced 2024-11-23 21:02:09 +00:00

Fix undefined "==" behavior in POSIX sh

Thanks, ShellCheck.
This commit is contained in:
Rohan Kumar 2023-02-09 22:51:12 -08:00
parent 45c046f4c6
commit e8ab433b22
No known key found for this signature in database
GPG key ID: 1E892DB2A5F84479

View file

@ -36,7 +36,7 @@ fetch_webmentions() {
# fetch webmentions if we don't have a fresh copy already.
if [ -f "$webmentions_file" ] \
&& [ "$(find "$webmentions_file" -mmin +90)" == "" ]; then
&& [ "$(find "$webmentions_file" -mmin +90)" = "" ]; then
echo 'Using cached webmentions'
else
echo 'Fetching webmentions'