diff --git a/cdist/conf/type/__iptables_rule/manifest b/cdist/conf/type/__iptables_rule/manifest index 27d00024..d4394c25 100755 --- a/cdist/conf/type/__iptables_rule/manifest +++ b/cdist/conf/type/__iptables_rule/manifest @@ -34,8 +34,8 @@ if [ -f "$__object/parameter/v6" ]; then specific_dir="$base_dir/v6" fi # If rules should be set for both protocols -if ([ "$only_v4" = "yes" ] && [ "$only_v6" = "yes" ]) \ - || [ -f "$__object/parameter/all" ]; then +if { [ "$only_v4" = "yes" ] && [ "$only_v6" = "yes" ]; } || + [ -f "$__object/parameter/all" ]; then # all to a specific directory specific_dir="$base_dir/all"