Skip to content

Commit

Permalink
Merge pull request #247 from WyriHaximusNet/drop-duplicate-$osDestina…
Browse files Browse the repository at this point in the history
…tionName

Drop duplicate $osDestinationName
  • Loading branch information
WyriHaximus authored Jul 10, 2024
2 parents 8ca5a25 + ebf9718 commit e8eb909
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion utils/all-image-tags.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
$list = [];
$fullImageList = json_decode(file_get_contents('all-images.list'), true);
foreach ($fullImageList as $image) {
[$sourceType, $destinatoinType, $sourcePhpVersion, $destinationPhpVersoin, $osType, $osDestinationName, $osDestinationName, $osSource] = explode('-', $image);
[$sourceType, $destinatoinType, $sourcePhpVersion, $destinationPhpVersoin, $osType, $osDestinationName, $osSource] = explode('-', $image);
foreach ([ "", "-dev", "-root", "-dev-root", "-slim", "-slim-dev", "-slim-root", "-slim-dev-root",] as $tagSuffix) {
echo 'wyrihaximusnet/php:', $destinationPhpVersoin . '-' . $destinatoinType . '-' . $osDestinationName, $tagSuffix, '#', $image, PHP_EOL;
}
Expand Down
2 changes: 1 addition & 1 deletion utils/newer-upstream-images.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
$list = [];
$fullImageList = json_decode(file_get_contents('all-images.list'), true);
foreach ($fullImageList as $image) {
[$sourceType, $destinatoinType, $destinationPhpVersoin, $sourcePhpVersion, $osType, $osDestinationName, $osDestinationName, $osSource] = explode('-', $image);
[$sourceType, $destinatoinType, $destinationPhpVersoin, $sourcePhpVersion, $osType, $osDestinationName, $osSource] = explode('-', $image);
$name = $destinationPhpVersoin . '-' . $destinatoinType . '-' . $osDestinationName;
if (!array_key_exists($name, $images)) {
continue;
Expand Down

0 comments on commit e8eb909

Please sign in to comment.