3 if ! (set -o pipefail
2>/dev
/null
); then
4 # dash does not support pipefail
10 export PATH
="$PATH:./node_modules/.bin"
14 if [ "$NODE_ENV" = "production" ] && [ -d "public/" ]; then
16 git clone
--depth 1 --branch site https
://gitlab.com
/curben
/blog.git site
17 cp -r site
/* "public/"
18 rm -f "public/README.md"
21 git clone
--depth 1 --branch microblog https
://gitlab.com
/curben
/blog.git microblog
23 export PATH
="$PATH:../node_modules/.bin"
26 cat "rsync-include.txt" |
while read include
; do
27 find "public/" -path "public/$include" -type f |
while read file; do
28 destdir
="../public/$(dirname $file | sed -r 's|^public/?||')"