From 5e9412e9cf37ce9ebe201d0787317fd594bcc6b3 Mon Sep 17 00:00:00 2001
From: Glenn Proctor <gp1@sanger.ac.uk>
Date: Wed, 28 Jun 2006 08:59:37 +0000
Subject: [PATCH] Added trailing $ to file matching regexp so (e.g.) emacs
 backup files (patch_39_40_a.sql~) are not considered to be valid patches.

---
 misc-scripts/schema_patch.pl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/misc-scripts/schema_patch.pl b/misc-scripts/schema_patch.pl
index b5f89d0f34..28ba4eb893 100755
--- a/misc-scripts/schema_patch.pl
+++ b/misc-scripts/schema_patch.pl
@@ -140,7 +140,7 @@ opendir(DIR, $patchdir) or
   $support->log_error("Can't opendir $patchdir: $!");
 
 while (my $file = readdir(DIR)) {
-  if ($file =~ /^patch_\d+_${schema}.*\.sql/) {
+  if ($file =~ /^patch_\d+_${schema}.*\.sql$/) {
     $support->log("$file\n", 1);
     push @patches, $file;
   }
-- 
GitLab