Skip to content

Commit 3dfb7f9

Browse files
committed
Fix check
1 parent 10f7e0d commit 3dfb7f9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bin/v-restart-web-backend

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ send_email_report() {
3737
is_format_valid 'restart'
3838

3939
if [ -z "$version" ]; then
40-
if [[ ! $version =~ ^[0-9]\.[0-9]+ ]]; then
40+
if [[ ! $version =~ ^[0-9]+\.[0-9]+ ]]; then
4141
echo "The specified PHP version format is invalid, it should look like [0-9].[0-9]."
4242
echo "Example: 7.0, 7.4, 8.0"
4343
exit "$E_INVALID"

0 commit comments

Comments
 (0)