Skip to content

Commit

Permalink
Only trigger erb if .erb files actually exist.
Browse files Browse the repository at this point in the history
  • Loading branch information
iphoting committed Feb 22, 2013
1 parent 741195c commit 31f7b2a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion bin/compile
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,10 @@ if [ -d /app/conf/nginx.d ]; then
# Parse .erb into .conf.
for f in /app/conf/nginx.d/*.erb
do
erb "\${f}" > "\${f}.conf"
if [ -r "\${f}" ];
then
erb "\${f}" > "\${f}.conf"
fi
done
fi
Expand Down

0 comments on commit 31f7b2a

Please sign in to comment.