2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-04-14 15:39:12 +00:00

contrib/pre-commit: add possibility to delete

git-svn-id: https://svn.fhem.de/fhem/trunk@7043 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2014-11-23 08:55:02 +00:00
parent b26d327611
commit 556b8a81c1

View File

@ -30,6 +30,7 @@ my $fList = `$svnlook changed $arg $repos`;
foreach my $row (split("\n", $fList)) {
chomp($row);
my ($type, $fName) = split(" ", $row);
next if($type eq "D");
next if(!$fName || $fName !~ m+FHEM/\d\d_(.*).pm$+);
my $modName = $1;