Skip to content
Snippets Groups Projects
Commit 5e9412e9 authored by Glenn Proctor's avatar Glenn Proctor
Browse files

Added trailing $ to file matching regexp so (e.g.) emacs backup files...

Added trailing $ to file matching regexp so (e.g.) emacs backup files (patch_39_40_a.sql~) are not considered to be valid patches.
parent 26d4fbfa
No related branches found
No related tags found
No related merge requests found
......@@ -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;
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment