git: 85397ca391b1 - main - MOVEDlint: accept -v blame=1 from command line

From: Baptiste Daroussin <bapt_at_FreeBSD.org>
Date: Tue, 23 Aug 2022 12:56:03 UTC
The branch main has been updated by bapt:

URL: https://cgit.FreeBSD.org/ports/commit/?id=85397ca391b1d81e9b90e100209c243be99789a0

commit 85397ca391b1d81e9b90e100209c243be99789a0
Author:     Baptiste Daroussin <bapt@FreeBSD.org>
AuthorDate: 2022-08-23 12:43:14 +0000
Commit:     Baptiste Daroussin <bapt@FreeBSD.org>
CommitDate: 2022-08-23 12:49:19 +0000

    MOVEDlint: accept -v blame=1 from command line
---
 Tools/scripts/MOVEDlint.awk | 12 +++++++-----
 1 file changed, 7 insertions(+), 5 deletions(-)

diff --git a/Tools/scripts/MOVEDlint.awk b/Tools/scripts/MOVEDlint.awk
index f9d9ef35bb8d..b06a475b00c6 100755
--- a/Tools/scripts/MOVEDlint.awk
+++ b/Tools/scripts/MOVEDlint.awk
@@ -36,11 +36,13 @@ BEGIN {
     portsdir = ENVIRON["PORTSDIR"] ? ENVIRON["PORTSDIR"] : "/usr/ports"
     if (ARGC == 1) {
         ARGV[ARGC++] = portsdir "/MOVED"
-        if (ENVIRON["BLAME"]) {
-	    if (!system("test -r " portsdir "/.git")) {
-                blame = "cd " portsdir "; git blame MOVED 2>/dev/null"
-            }
-
+    }
+    if (ENVIRON["BLAME"]) {
+        blame=1
+    }
+    if (blame) {
+	if (!system("test -r " portsdir "/.git")) {
+            blame = "cd " portsdir "; git blame MOVED 2>/dev/null"
         }
     }
     sort = "/usr/bin/sort -n"