From a1de57e4dbb3909db024a986e775d04710baed8c Mon Sep 17 00:00:00 2001 From: Ismael Luceno Date: Sun, 26 Mar 2023 09:16:21 +0200 Subject: [PATCH] sightsee: Fix parsing of VERSION variable --- usr/lib/sorcery/cmd/sightsee | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/usr/lib/sorcery/cmd/sightsee b/usr/lib/sorcery/cmd/sightsee index 9bf729ea..36affd2d 100755 --- a/usr/lib/sorcery/cmd/sightsee +++ b/usr/lib/sorcery/cmd/sightsee @@ -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:/ { -- 2.38.5