~sourcemage/sorcery

bad15943017418d8e61772bc34269eae61ec4e04 — Ismael Luceno 1 year, 3 months ago 4f36610
sightsee: Make test mode show all unique matches
1 files changed, 2 insertions(+), 2 deletions(-)

M usr/lib/sorcery/cmd/sightsee
M usr/lib/sorcery/cmd/sightsee => usr/lib/sorcery/cmd/sightsee +2 -2
@@ 8,7 8,7 @@ upstream_rel_get() {
		$0 = substr($0, RSTART, RLENGTH)
		print V[1 in V]
	}
  ' | sort -rV | sed q
  ' | sort -urV
}

# Process options


@@ 86,7 86,7 @@ find "${paths[@]}" -name DETAILS -exec awk '
	}
  ' {} + |
while read spell cur_rel url regex; do
  latest_rel=$(upstream_rel_get "$url" "$regex") || continue
  latest_rel=$(upstream_rel_get "$url" "$regex" | sed q) || continue
  if [ "x$latest_rel" != "x$cur_rel" ]; then
    echo "$spell $latest_rel"
  elif [ -n "$verbose" ]; then