diff options
-rwxr-xr-x | vienna | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/vienna b/vienna index 03d7451..4edbe11 100755 --- a/vienna +++ b/vienna | |||
@@ -230,6 +230,7 @@ EOF | |||
230 | alias preview=_preview | 230 | alias preview=_preview |
231 | 231 | ||
232 | initialize() { # initialize | 232 | initialize() { # initialize |
233 | log init "$CONFIG" | ||
233 | cat >"$CONFIG" <<EOF | 234 | cat >"$CONFIG" <<EOF |
234 | # .vienna.sh | 235 | # .vienna.sh |
235 | DOMAIN="$DOMAIN" | 236 | DOMAIN="$DOMAIN" |
@@ -253,7 +254,7 @@ preview() { | |||
253 | sh -c 'kill "$_VIENNA_PID" >/dev/null 2>&1; | 254 | sh -c 'kill "$_VIENNA_PID" >/dev/null 2>&1; |
254 | vienna && "$_PYTHON" -m http.server -d "$OUTDIR"' | 255 | vienna && "$_PYTHON" -m http.server -d "$OUTDIR"' |
255 | else | 256 | else |
256 | log error "\`python' not found." | 257 | log error "\\\`python' not found." |
257 | _preview | 258 | _preview |
258 | fi | 259 | fi |
259 | } | 260 | } |
@@ -279,6 +280,7 @@ EOF | |||
279 | $$(body) | 280 | $$(body) |
280 | </ul> | 281 | </ul> |
281 | EOF | 282 | EOF |
283 | log init "$FEED_TEMPLATE" | ||
282 | cat >"$FEED_TEMPLATE" <<\EOF | 284 | cat >"$FEED_TEMPLATE" <<\EOF |
283 | <rss version="2.0"> | 285 | <rss version="2.0"> |
284 | <channel> | 286 | <channel> |
@@ -288,6 +290,7 @@ EOF | |||
288 | </channel> | 290 | </channel> |
289 | </rss> | 291 | </rss> |
290 | EOF | 292 | EOF |
293 | exit | ||
291 | } | 294 | } |
292 | 295 | ||
293 | ### Utility | 296 | ### Utility |