ComplianceAsCode/content

View on GitHub
tests/shared/group_updating_utils.sh

Summary

Maintainability
Test Coverage
#!/bin/bash
 
You need a space after the '{'.
This } is literal. Check expression (missing ;/\n?) or quote it.
{{% if 'sle' in product %}}
function find_config_file {
config_file="/etc/zypp/zypp.conf"
echo $config_file
Unexpected trailing spaces found.
}
You need a space after the '{'.
This } is literal. Check expression (missing ;/\n?) or quote it.
{{% else %}}
function find_config_file {
if [ -f "/etc/dnf/dnf.conf" ]; then
config_file="/etc/dnf/dnf.conf"
else
config_file="/etc/yum.conf"
fi
echo $config_file
}
Couldn't parse this brace group.
You need a space after the '{'.
The mentioned parser error was in this brace group.
This } is literal. Check expression (missing ;/\n?) or quote it.
{{% endif %}}