Jaap Marcus 1 år sedan
förälder
incheckning
3dfb7f9472
1 ändrade filer med 1 tillägg och 1 borttagningar
  1. 1 1
      bin/v-restart-web-backend

+ 1 - 1
bin/v-restart-web-backend

@@ -37,7 +37,7 @@ send_email_report() {
 is_format_valid 'restart'
 
 if [ -z "$version" ]; then
-	if [[ ! $version =~ ^[0-9]\.[0-9]+ ]]; then
+	if [[ ! $version =~ ^[0-9]+\.[0-9]+ ]]; then
 		echo "The specified PHP version format is invalid, it should look like [0-9].[0-9]."
 		echo "Example: 7.0, 7.4, 8.0"
 		exit "$E_INVALID"