From b4c10b6a69ea122ca06d2e17a22beb25b880808c Mon Sep 17 00:00:00 2001 From: Connor Olding Date: Wed, 5 Oct 2022 08:19:05 -0700 Subject: [PATCH] meta: superficial tweak to auto-update --- auto-update | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/auto-update b/auto-update index 6027e6f..84849c7 100755 --- a/auto-update +++ b/auto-update @@ -24,9 +24,9 @@ latest() { : \ && while [ $# != 0 ] \ ;do dir="$1" tag="$2" url="$3" \ && { shift && shift && shift || { note 'incomplete triplet'; exit 70 ;} ;} \ - && if ! [ -d "$dir" ] && ! [ -f "$dir/$df" ] && ! [ -s "$dir/$df" ] \ - ;then note "missing $df, skipping $dir ($tag)"; continue \ - ;fi \ + && { [ -d "$dir" ] && [ -f "$dir/$df" ] && [ -s "$dir/$df" ] \ + || { note "missing $df, skipping $dir ($tag)"; continue ;} \ + ;} \ && ours="$(grep -F "$tag"= "$dir/$df" | grep -Eo '[0-9a-f]{40}')" \ && theirs="$(latest "$url")" ours="${ours%%$n*}" theirs="${theirs%%$n*}" \ && if [ ${#ours} = 0 ] || [ ${#theirs} = 0 ] \