mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-22 14:23:57 -07:00
Update _release.php
This commit is contained in:
parent
c17fb3e52e
commit
05c32df1aa
1 changed files with 5 additions and 0 deletions
|
@ -47,6 +47,11 @@ if (empty($version)) {
|
||||||
out("- Version cannot be empty. Please enter a valid version number", 'error');
|
out("- Version cannot be empty. Please enter a valid version number", 'error');
|
||||||
exit;
|
exit;
|
||||||
} else {
|
} else {
|
||||||
|
// Add 'v' prefix if missing
|
||||||
|
if (!str_starts_with($version, 'v')) {
|
||||||
|
$version = 'v' . $version;
|
||||||
|
}
|
||||||
|
|
||||||
out("- Using version: $version", 'info');
|
out("- Using version: $version", 'info');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue