~sourcemage/sorcery

0fa97cfb367df44e145122411898e4876fb605f1 — Ismael Luceno 1 year, 6 months ago bad1594
sightsee: Allow for spaces in the regex
1 files changed, 5 insertions(+), 3 deletions(-)

M usr/lib/sorcery/cmd/sightsee
M usr/lib/sorcery/cmd/sightsee => usr/lib/sorcery/cmd/sightsee +5 -3
@@ 69,9 69,11 @@ find "${paths[@]}" -name DETAILS -exec awk '
		sub(/.*=/, "", version)
		if (watch_url != "") nextfile
	}
	/^#Watch:/ {
		watch_url = $2
		watch_regex = $3
	/^# *Watch:/ {
		sub(/^[^:]+: */, "")
		watch_url = $1
		sub(/^[^ ]+ +/, "")
		watch_regex = $0
		# TODO check syntax
		if (version != "") nextfile
	}