missing parenthesis

This commit is contained in:
yalh76 2020-06-16 00:44:26 +02:00 committed by GitHub
parent c67813f5d5
commit a0ae79402d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -194,7 +194,7 @@ CHECK_TEMPLATE () {
if [ -e "$app_scripts_dir/$script" ] && [ "$script" != "config" ]
then
template_output="$($grep_command --count "ynh_script_progression|ynh_print_info" "$app_scripts_dir/$script")"
if [ $template_output -lt 5 ] || ( [ "$script" = "change_url" ] && [ $template_output -lt 3 ] || ( [ "$script" = "backup" ] && [ $template_output -lt 4 ] )
if [ $template_output -lt 5 ] || ( [ "$script" = "change_url" ] && [ $template_output -lt 3 ] ) || ( [ "$script" = "backup" ] && [ $template_output -lt 4 ] )
then
template_output="$app_scripts_dir/$script"
show_error "Looks like there isn't many comment progression indicators in your script" "Consider adding more indicators to help your users know the progression of the scripts"