Commit 3f7570b8d1
Unsigned
Layout: unified · split
build.sh +2 −2
| @@ -1,6 +1,6 @@ | |||
| 1 | #!/bin/bash | 1 | #!/bin/bash |
| 2 | 2 | ||
| 3 | printf "Did you update the 'Recent Blog Posts' section? [yn]" | 3 | printf "Did you update the 'Recent Blog Posts' section? [yn] " |
| 4 | read answer | 4 | read answer |
| 5 | 5 | ||
| 6 | if [ "$answer" != "${answer#[Yy]}" ] ; then | 6 | if [ "$answer" != "${answer#[Yy]}" ] ; then |
| @@ -8,7 +8,7 @@ if [ "$answer" != "${answer#[Yy]}" ] ; then | |||
| 8 | echo "Environment = Production" && \ | 8 | echo "Environment = Production" && \ |
| 9 | rm -rf .build/* && \ | 9 | rm -rf .build/* && \ |
| 10 | emacs --script publish.el && \ | 10 | emacs --script publish.el && \ |
| 11 | rsync -av --delete-before public/* ubuntu:/var/www/cleberg.net/ | 11 | rsync -av --delete-before .build/* ubuntu:/var/www/cleberg.net/ |
| 12 | else | 12 | else |
| 13 | echo "Environment = Development" && \ | 13 | echo "Environment = Development" && \ |
| 14 | rm -rf .build/* && \ | 14 | rm -rf .build/* && \ |