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