mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-03 18:04:26 +02:00
Make make-release.sh safer by checking for version number.
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
if [[ "$1" =~ ^3\.[0-9]$ ]]; then
|
if [[ "$1" =~ ^3\.[0-9\.-rc]+$ ]]; then
|
||||||
printf 'Creating release %s\n' "$1"
|
printf 'Creating release %s\n' "$1"
|
||||||
else
|
else
|
||||||
echo "Invalid version number: $1. This script can only make v3.x.x releases."
|
echo "Invalid version number: $1. This script can only make v3.x.x releases."
|
||||||
|
Reference in New Issue
Block a user