Added condition to prevent committing empty secret files