mirror of
https://github.com/crowdsecurity/crowdsec.git
synced 2025-05-10 20:05:55 +02:00
test -s -> test -f
This commit is contained in:
parent
6170b1390c
commit
3db26cee33
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue