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] == '