]> git.openstreetmap.org Git - chef.git/commitdiff
Anchor regular expression
authorTom Hughes <tom@compton.nu>
Wed, 20 Feb 2019 21:47:41 +0000 (21:47 +0000)
committerTom Hughes <tom@compton.nu>
Wed, 20 Feb 2019 21:47:41 +0000 (21:47 +0000)
cookbooks/planet/templates/default/apache-latest-planet-filename.erb

index 967fa41e5bc00bb3109e5928d46e7ccb6e1c4e8e..87fd926e34b19019b7901008218afe99e1d8a15c 100644 (file)
@@ -15,7 +15,7 @@ while (my $path = <STDIN>)
 
     my $file = abs_path("/store/planet${path}");
 
-    if ($file && $file =~ m|/store/planet/| && -f $file)
+    if ($file && $file =~ m|^/store/planet/| && -f $file)
     {
         print "${file}\n";
     }