From 913996c8f5d28a0bbb5d864fbf872e94dfc18ed5 Mon Sep 17 00:00:00 2001 From: Justin Hsu Date: Sun, 4 Jan 2015 23:50:50 -0800 Subject: [PATCH] Fix deploy problems. --- scripts/deploy.sh | 4 ++-- site.hs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) mode change 100644 => 100755 scripts/deploy.sh diff --git a/scripts/deploy.sh b/scripts/deploy.sh old mode 100644 new mode 100755 index a86a8a7..0b4f855 --- a/scripts/deploy.sh +++ b/scripts/deploy.sh @@ -1,5 +1,5 @@ #!/opt/local/bin/zsh -find . -type d -exec chmod 755 {} \; -find . -type f -exec chmod 644 {} \; +find . -type d -exec chmod a+rx {} \; +find . -type f -exec chmod a+r {} \; \rsync -avzp -e ssh ./_site/ jackknife:/home/justhsu/html/ diff --git a/site.hs b/site.hs index c1e9176..e2d907c 100644 --- a/site.hs +++ b/site.hs @@ -10,7 +10,7 @@ import Text.Regex config :: Configuration config = defaultConfiguration - { deployCommand = "./scripts/deploy" } + { deployCommand = "echo `pwd`; ./scripts/deploy.sh" } -------------------------------------------------------------------------------- bibHeaders :: [(String, String, [String])]