Skip to content

Commit 71794f4

Browse files
Merge branch '4.1'
* 4.1: minor fix for travis
2 parents c42b609 + 80bfead commit 71794f4

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/rm-invalid-lowest-lock-files.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,8 +142,10 @@ function getContentHash(array $composerJson)
142142
foreach ($referencedCommits as $name => $dirsByCommit) {
143143
foreach ($dirsByCommit as $dirs) {
144144
foreach ($dirs as $dir) {
145-
echo "$dir/composer.lock references old commit for $name.\n";
146-
@unlink($dir.'/composer.lock');
145+
if (file_exists($dir.'/composer.lock')) {
146+
echo "$dir/composer.lock references old commit for $name.\n";
147+
@unlink($dir.'/composer.lock');
148+
}
147149
}
148150
}
149151
}

0 commit comments

Comments
 (0)