svn commit: r453893 - head/Tools/scripts

Mathieu Arnold mat at FreeBSD.org
Fri Nov 10 11:59:19 UTC 2017


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"))


More information about the svn-ports-head mailing list