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 2a252a4e15
commit 3e1d07408b

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;