assign $page when its needed

This commit is contained in:
nuex 2011-10-06 17:55:18 -04:00
parent eb2b3e0660
commit 19b6925b86
1 changed files with 3 additions and 3 deletions

View File

@ -32,9 +32,6 @@ if [ $ext == "md" ] || [ $ext == "html" ]; then
meta=${f%.$ext}.meta
[ -f "$meta" ] && page_meta_opts="$meta"
page=${f##*/}
page=${page%.$ext}.html
set -- -f "$zod_lib/render.awk"
[ "$helper_opts" ] && set -- "$@" -f "$helper_opts"
set -- "$@" -v markdown_filter_cmd="$markdown_filter_cmd" \
@ -43,6 +40,9 @@ if [ $ext == "md" ] || [ $ext == "html" ]; then
"$f" \
"$layout_opts"
page=${f##*/}
page=${page%.$ext}.html
awk "$@" > "$destination/$page"
else