about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rwxr-xr-xvienna5
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
230alias preview=_preview 230alias preview=_preview
231 231
232initialize() { # initialize 232initialize() { # initialize
233 log init "$CONFIG"
233 cat >"$CONFIG" <<EOF 234 cat >"$CONFIG" <<EOF
234# .vienna.sh 235# .vienna.sh
235DOMAIN="$DOMAIN" 236DOMAIN="$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>
281EOF 282EOF
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>
290EOF 292EOF
293 exit
291} 294}
292 295
293### Utility 296### Utility