From b40b4d955e48a113c01a76772e7d1145d2260789 Mon Sep 17 00:00:00 2001 From: DTB Date: Thu, 16 Feb 2023 04:02:53 -0500 Subject: [PATCH] run it seymore! --- homepage/blog | 152 +++++++++++++++++++++++++++++++++++++++++++++++--- 1 file changed, 144 insertions(+), 8 deletions(-) diff --git a/homepage/blog b/homepage/blog index 4e45437..dca55b0 100755 --- a/homepage/blog +++ b/homepage/blog @@ -1,6 +1,5 @@ #!/bin/sh -set -ex;mkdir -p blah;python -c "import os;os.chdir('blah') -with open('../$0', 'r') as f: +set -ex;mkdir -p blah;cd blah;python -c "with open('../$0', 'r') as f: for day in f.read().split('\n\n\n'): if day.split('\n')[0] == '#!/bin/sh': prefix='\n'.join(day.split('\n')[day.split('\n').index( @@ -8,15 +7,33 @@ with open('../$0', 'r') as f: elif day.split('\n')[0][:4] == '