Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 10 Nov 2017 11:59:17 +0000 (UTC)
From:      Mathieu Arnold <mat@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r453893 - head/Tools/scripts
Message-ID:  <201711101159.vAABxH2s062554@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: mat
Date: Fri Nov 10 11:59:17 2017
New Revision: 453893
URL: https://svnweb.freebsd.org/changeset/ports/453893

Log:
  Add braces around all if/else.
  
  Sponsored by:	Absolight

Modified:
  head/Tools/scripts/MOVEDlint.awk

Modified: head/Tools/scripts/MOVEDlint.awk
==============================================================================
--- head/Tools/scripts/MOVEDlint.awk	Fri Nov 10 11:54:25 2017	(r453892)
+++ head/Tools/scripts/MOVEDlint.awk	Fri Nov 10 11:59:17 2017	(r453893)
@@ -80,10 +80,11 @@ $3 !~ /^20[0-3][0-9]-[01][0-9]-[0-3][0-9]$/ {
     }
     lastdate = $3
 
-    if (system("test -f " portsdir "/" $1 "/Makefile"))
+    if (system("test -f " portsdir "/" $1 "/Makefile")) {
         delete missing[$1]
-    else
+    } else {
         resurrected[$1] = NR
+    }
 
     if ($2) {
         if (system("test -f " portsdir "/" $2 "/Makefile"))



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201711101159.vAABxH2s062554>