Update release.php

This commit is contained in:
Remco Tolsma 2024-07-24 15:49:52 +02:00
parent 11ad5fbed7
commit 21b17166ed
1 changed files with 1 additions and 20 deletions

View File

@ -42,26 +42,7 @@ $data = run(
)
);
$result = json_decode( $data );
if ( ! is_object( $result ) ) {
throw new Exception(
sprintf(
'Unknow response from: %s.',
$url
)
);
exit( 1 );
}
if ( ! property_exists( $result, 'version' ) ) {
echo 'No version';
exit( 1 );
}
$version = $result->version;
$version = $data;
line(
sprintf(