diff --git a/push.sh b/push.sh index 7f581c9..36f444b 100755 --- a/push.sh +++ b/push.sh @@ -12,7 +12,11 @@ cp www/bootstrap.js www/index.html www/index.js www/style.css tmp/ sed -i 's/\.\.\/pkg/\.\/pkg/g' tmp/bootstrap.js # put the commit at the beginning of index.html -sed -i "1i " tmp/index.html +mv tmp/index.html tmp/index.html.bak +commit_comment="" +echo $commit_comment > tmp/index.html +cat tmp/index.html.bak >> tmp/index.html +rm -fr tmp/index.html.bak echo "rsyncing" rsync -av --delete --info=progress2 tmp/ rpi-public:/mnt/hdd/http_share/integral-demo/