From 5b8e914783bd3a01cae729584b15ad16615a4240 Mon Sep 17 00:00:00 2001 From: DTB Date: Mon, 6 Feb 2023 19:12:28 -0500 Subject: [PATCH] code changes and 2023-02-06 --- homepage/blog | 88 +++++++++++++++++++++++++++++++++++++++++++++++---- 1 file changed, 82 insertions(+), 6 deletions(-) diff --git a/homepage/blog b/homepage/blog index b07a60e..4fdf7ed 100755 --- a/homepage/blog +++ b/homepage/blog @@ -1,6 +1,5 @@ #!/bin/sh -set -ex;test -d blah||mkdir blah;python -c " -import os;os.chdir('blah') +set -ex;mkdir -p blah;python -c "import os;os.chdir('blah') with open('../$0', 'r') as f: for day in f.read().split('\n\n\n'): if day.split('\n')[0] == '#!/bin/sh': @@ -9,12 +8,11 @@ with open('../$0', 'r') as f: elif day.split('\n')[0][:4] == '