test -s -> test -f

This commit is contained in:
marco 2025-05-07 13:39:37 +02:00
parent 6170b1390c
commit 3db26cee33

View file

@ -509,7 +509,7 @@ install_plugins() {
cp ${FILE_PLUGIN_BINARY} ${CROWDSEC_PLUGIN_DIR}
for yaml_conf in ${SLACK_PLUGIN_CONFIG} ${SPLUNK_PLUGIN_CONFIG} ${HTTP_PLUGIN_CONFIG} ${EMAIL_PLUGIN_CONFIG} ${SENTINEL_PLUGIN_CONFIG} ${FILE_PLUGIN_CONFIG}; do
if [[ ! -s /etc/crowdsec/notifications/"$(basename "$yaml_conf")" ]]; then
if [[ ! -f /etc/crowdsec/notifications/"$(basename "$yaml_conf")" ]]; then
cp "$yaml_conf" /etc/crowdsec/notifications/
fi
done