Check if files exist and not if they're regular files

This allows you to do weird shit without firestarter clobbering your setup
This commit is contained in:
Salt 2019-06-21 21:18:00 -05:00
parent fc27ca53a8
commit feb9438a7d

View File

@ -399,7 +399,7 @@ step_execute() {
fi fi
# Parse configs # Parse configs
for file in "$_configdir"/*; do for file in "$_configdir"/*; do
if ! [ -f "$file" ]; then if ! [ -e "$file" ]; then
log "No configuration files found; generating defaults" log "No configuration files found; generating defaults"
step_generate step_generate
step_execute step_execute