Jaap Marcus hace 1 año
padre
commit
3dfb7f9472
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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'
 is_format_valid 'restart'
 
 
 if [ -z "$version" ]; then
 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 "The specified PHP version format is invalid, it should look like [0-9].[0-9]."
 		echo "Example: 7.0, 7.4, 8.0"
 		echo "Example: 7.0, 7.4, 8.0"
 		exit "$E_INVALID"
 		exit "$E_INVALID"