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 ] \