|
|
@@ -36,7 +36,7 @@ send_email_report() {
|
|
|
|
|
|
is_format_valid 'restart'
|
|
|
|
|
|
-if [ -z "$version" ]; then
|
|
|
+if [ -n "$version" ]; 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"
|