sightsee: Fix parsing of VERSION variable
1 files changed, 3 insertions(+), 1 deletions(-) M usr/lib/sorcery/cmd/sightsee
M usr/lib/sorcery/cmd/sightsee => usr/lib/sorcery/cmd/sightsee +3 -1
@@ 74,7 74,9 @@ find "${paths[@]}" -name DETAILS -exec awk -vdebug="$debug" ' } /^ *VERSION=/ { version = $0 - sub(/.*=/, "", version) + sub(/[\t ]*[;#].*/, "", version) + sub(/.*=["'\'']?/, "", version) + sub(/["'\'']$/, "", version) if (watch_url != "") nextfile } /^# *Watch:/ {